Files
OpenBB/tests/openbb_terminal/cryptocurrency/discovery/test_dappradar_model.py
Igor Radovanovic 30372676bf crypto/disc DappRadar update (#4918)
* Add API Key, test function

* Fix API key

* Add free NFT endpoints

* Add free Dapp Endpoints

* Add free DeFi Endpoint

* Add free Token  Endpoint

* Menu cleanup

* Update unit tests

* Update integration test

* ruff

* Description

* Update SDK model

* Trail map

* Fix map

* Fix map

* Update SDK cache

* Linting

* fix

---------

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2023-05-03 11:56:07 +00:00

36 lines
835 B
Python

# IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.cryptocurrency.discovery import dappradar_model
# pylint: disable=protected-access
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None), ("X-BLOBR-KEY", "MOCK_API_KEY")],
}
@pytest.mark.record_http
@pytest.mark.parametrize(
"func, kwargs",
[
("get_nft_marketplaces", dict()),
("get_nft_marketplace_chains", dict()),
("get_dapps", dict()),
("get_dapp_chains", dict()),
("get_dapp_categories", dict()),
("get_token_chains", dict()),
("get_defi_chains", dict()),
],
)
def test_call_func(func, kwargs, record):
result = getattr(dappradar_model, func)(**kwargs)
record.add_verify(result)