Files
OpenBB/tests/openbb_terminal/stocks/discovery/test_seeking_alpha_model.py
Theodore Aptekarev 18204202ac Remove stocks/disc/cnews command (#4920)
* Remove stocks/disc/cnews command from terminal and sdk

* Remove disc/cnews tests and test data

* Remove cnews from default sources, translations and intros

* Remove old test data files that are not used anymore

* Add pydocstyle ignore statement to pyproject toml

* Fix print help in stocks/disc controller test
2023-04-27 16:24:13 +00:00

33 lines
724 B
Python

# IMPORTATION STANDARD
from datetime import date
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.stocks.discovery import seeking_alpha_model
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None)],
}
@pytest.mark.vcr
def test_get_next_earnings(recorder):
df_earnings = seeking_alpha_model.get_next_earnings(1, start_date=date(2023, 3, 22))
recorder.capture(df_earnings)
@pytest.mark.vcr
def test_get_trending_list(recorder):
trending_list = seeking_alpha_model.get_trending_list(limit=2)
recorder.capture(trending_list)
@pytest.mark.vcr
def test_get_news_html():
seeking_alpha_model.get_news_html()