mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
* fix news sources * lint * ordering * fix tests Co-authored-by: James Maslek <jmaslek11@gmail.com>
24 lines
480 B
Python
24 lines
480 B
Python
# IMPORTATION STANDARD
|
|
|
|
# IMPORTATION THIRDPARTY
|
|
import pytest
|
|
|
|
# IMPORTATION INTERNAL
|
|
from openbb_terminal.common.feedparser_model import get_news
|
|
|
|
|
|
@pytest.mark.vcr
|
|
@pytest.mark.parametrize(
|
|
"term, sources",
|
|
[
|
|
("", ""),
|
|
("Apple", ""),
|
|
("TSLA", "bloomberg"),
|
|
("Apple", "bloomberg,Reuters"),
|
|
("asdf$#", ""),
|
|
],
|
|
)
|
|
def test_get_news(term, sources, recorder):
|
|
df = get_news(term=term, sources=sources)
|
|
recorder.capture(df)
|