mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 23:41:27 +00:00
* 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>
36 lines
835 B
Python
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)
|