mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-04 08:22:26 +00:00
* Updating tests : crypto/defi * Updating tests : stocks/prediction_techniques * Updating tests : economy * Updating tests : conftest * Updating tests : economy/wsj * Updating crypto : fixing defi/coindix_view * Updating crypto : fix crypto/defi/defipulse_model * Updating tests : crypto/defi * Updating tests : crypto/defi * Updating crypto : crypto/defi/graph_model * Updating tests : crypto/defi * Updating tests : crypto/defi * Updating tests : crypto/defi * Updating tests : black * Updating tests : economy/fred/prediction * Updating tests : crypto/defi/graph * Updating tests : linting
25 lines
565 B
Python
25 lines
565 B
Python
# IMPORTATION STANDARD
|
|
|
|
# IMPORTATION THIRDPARTY
|
|
import pytest
|
|
|
|
# IMPORTATION INTERNAL
|
|
from gamestonk_terminal.cryptocurrency.defi import substack_view
|
|
|
|
|
|
@pytest.mark.vcr
|
|
@pytest.mark.record_stdout
|
|
def test_display_newsletters(mocker):
|
|
# MOCK EXPORT_DATA
|
|
mocker.patch(
|
|
target="gamestonk_terminal.cryptocurrency.defi.substack_view.export_data"
|
|
)
|
|
|
|
# MOCK LEN
|
|
mocker.patch(
|
|
target="gamestonk_terminal.cryptocurrency.defi.substack_model.len",
|
|
return_value=1,
|
|
)
|
|
|
|
substack_view.display_newsletters(top=None, export="")
|