mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-24 02:02:32 +00:00
* 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
36 lines
679 B
Python
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="",
|
|
)
|