mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
* fix(docs): added margin between sections * feat: added hn command * fix: added log decorator Co-authored-by: James Maslek <jmaslek11@gmail.com>
19 lines
390 B
Python
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,
|
|
)
|