Files
OpenBB/tests/gamestonk_terminal/cryptocurrency/defi/test_substack_view.py
Chavithra ccfe98e19d Tests + Fix : Cryptocurrency > Defi (#1284)
* 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
2022-01-29 16:07:41 +01:00

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="")