Files
OpenBB/tests/openbb_terminal/common/test_feedparser_model.py
DidierRLopes 58fb4cd190 fix news sources (#3118)
* fix news sources

* lint

* ordering

* fix tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-27 14:51:59 +01:00

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)