Files
OpenBB/tests/test_pred_neural_networks.py
DidierRLopes c2197a7375 Big Code Refactoring with contexts vs category division (#644)
* big-refactoring

* add terminal_helper

* fix tests

* remove init modules

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2021-08-06 12:50:29 -04:00

27 lines
861 B
Python

""" fundamental_analysis/yahoo_finance_api.py tests """
import unittest
try:
from gamestonk_terminal.common.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")