mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 21:42:22 +00:00
27 lines
825 B
Python
27 lines
825 B
Python
""" fundamental_analysis/yahoo_finance_api.py tests """
|
|
import unittest
|
|
|
|
try:
|
|
from gamestonk_terminal.prediction_techniques.neural_networks import mlp
|
|
except ModuleNotFoundError as e:
|
|
print("One of the optional packages seems to be missing")
|
|
print(e)
|
|
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:
|
|
print("One of the optional packages seems to be missing")
|
|
print(e)
|
|
print("Skipping the test")
|