Files
OpenBB/tests/openbb_terminal/alternative/test_hackernews_view.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

19 lines
390 B
Python

# IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.alternative.hackernews_view import display_stories
@pytest.mark.vcr
@pytest.mark.record_stdout
def test_display_stories(mocker):
# MOCK EXPORT_DATA
mocker.patch(target="openbb_terminal.alternative.hackernews_view.export_data")
display_stories(
limit=5,
)