mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-31 06:22:18 +00:00
Added more descripting message when Financialmodelingprep.com is returning empty responses
This commit is contained in:
@@ -25,6 +25,13 @@ def rating(l_args, s_ticker):
|
||||
|
||||
print("")
|
||||
|
||||
except KeyError:
|
||||
print(
|
||||
f"Financialmodelingprep.com is returning empty responses the ticker {s_ticker}."
|
||||
)
|
||||
print("")
|
||||
return
|
||||
|
||||
except Exception as e:
|
||||
print(e)
|
||||
print("")
|
||||
|
||||
13
tests/test_dd_financial_modeling_prep_api.py
Executable file
13
tests/test_dd_financial_modeling_prep_api.py
Executable file
@@ -0,0 +1,13 @@
|
||||
""" fundamental_analysis/business_insider_api.py tests """
|
||||
# noqa: F401
|
||||
import unittest
|
||||
|
||||
# pylint: disable=unused-import
|
||||
import pytest
|
||||
|
||||
from gamestonk_terminal.due_diligence.financial_modeling_prep_api import rating
|
||||
|
||||
|
||||
class TestDdFinancialModelingPrepApi(unittest.TestCase):
|
||||
def test_rating(self):
|
||||
rating([], "PLTR")
|
||||
Reference in New Issue
Block a user