Files
OpenBB/tests/openbb_terminal/stocks/discovery/test_seeking_alpha_view.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

36 lines
679 B
Python

# IMPORTATION STANDARD
from datetime import date
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.stocks.discovery import seeking_alpha_view
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None)],
}
@pytest.mark.vcr
@pytest.mark.record_stdout
def test_upcoming_earning_release_dates():
seeking_alpha_view.upcoming_earning_release_dates(
limit=2,
start_date=date(2023, 3, 22),
export="",
)
@pytest.mark.vcr
@pytest.mark.record_stdout
def test_news():
seeking_alpha_view.news(
article_id=-1,
limit=2,
export="",
)