mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-06 09:22:26 +00:00
* Added tests ReadMe * Added warning * Moved testing docs * Fixed formatting * Added a CF tie-out warning and handling for negative firm value * Added treasury API * Updated t-bill from API * Finished better risk understanding * Finished better risk understanding * Requested changes * Updated * Updated filename Co-authored-by: Colin Delahunty <colindelahunty@colins-air.attlocal.net> Co-authored-by: Colin Delahunty <colindelahunty@Colins-MacBook-Air.local>
19 lines
507 B
Python
19 lines
507 B
Python
""" due_diligence/finviz_api.py tests """
|
|
import unittest
|
|
|
|
import vcr
|
|
|
|
from gamestonk_terminal.stocks.due_diligence.finviz_model import get_analyst_data
|
|
from tests.helpers import check_print
|
|
|
|
|
|
class TestDdFinvizApi(unittest.TestCase):
|
|
@check_print(assert_in="category")
|
|
@vcr.use_cassette(
|
|
"tests/cassettes/test_dd/test_finzin/test_analyst.yaml",
|
|
record_mode="new_episodes",
|
|
)
|
|
def test_analyst(self):
|
|
df = get_analyst_data(ticker="PLTR")
|
|
print(df.to_string())
|