Files
OpenBB/tests/openbb_terminal/alternative/test_hackernews_model.py
jose-donato d9267da380 Adds command to check top hackernews stories (#3841)
* fix(docs): added margin between sections

* feat: added hn command

* fix: added log decorator

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-03 16:56:24 -05:00

20 lines
346 B
Python

# IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.alternative.hackernews_model import get_stories
@pytest.mark.vcr
@pytest.mark.parametrize(
"limit",
[(5), (10)],
)
def test_get_stories(limit, recorder):
df = get_stories(
limit=limit,
)
recorder.capture(df)