Files
OpenBB/tests/test_pred_neural_networks.py
DidierRLopes e1612f905d Update donation section with patreon (#526)
* Update donation section with patreon

* Update based on pylint update it seems

* remove git import to fix bugs

* another pylint complain

* pylint stop crying pls
2021-06-30 00:22:03 +01:00

27 lines
854 B
Python

""" fundamental_analysis/yahoo_finance_api.py tests """
import unittest
try:
from gamestonk_terminal.prediction_techniques.neural_networks_view import mlp
except ModuleNotFoundError as e_module:
print("One of the optional packages seems to be missing")
print(e_module)
print("Skipping the test")
from gamestonk_terminal import feature_flags as gtff
class TestPredNeuralNetworks(unittest.TestCase):
def test_mlp(self):
if not gtff.ENABLE_PREDICT:
return
# Fix: need to come up with a better way of doing this
try:
# Fix: need to move loading of ticker data into a df somewhere
mlp([], "TLSA", None)
except NameError as e_name:
print("One of the optional packages seems to be missing")
print(e_name)
print("Skipping the test")