mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
23 lines
558 B
Python
23 lines
558 B
Python
""" fundamental_analysis/yahoo_finance_api.py tests """
|
|
import unittest
|
|
|
|
# pylint: disable=unused-import
|
|
from gamestonk_terminal.fundamental_analysis.yahoo_finance_api import ( # noqa: F401
|
|
info,
|
|
sustainability,
|
|
calendar_earnings,
|
|
)
|
|
|
|
|
|
class TestFaYahooFinanceApi(unittest.TestCase):
|
|
def test_info(self):
|
|
info([], "PLTR")
|
|
|
|
def test_sustainability(self):
|
|
# Fix: Yahoo sustainability API is flaky
|
|
# sustainability([], "GME")
|
|
return
|
|
|
|
def test_calendar_earnings(self):
|
|
calendar_earnings([], "GME")
|