Files
OpenBB/tests/openbb_terminal/cryptocurrency/overview/test_sdk_helpers.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

35 lines
626 B
Python

import pytest
from pandas import DataFrame
from openbb_terminal.cryptocurrency.overview import sdk_helpers
@pytest.mark.record_http
@pytest.mark.parametrize(
"source",
[
"CoinGecko",
"CoinPaprika",
],
)
def test_globe(source):
df = sdk_helpers.globe(source=source)
assert isinstance(df, DataFrame)
assert not df.empty
@pytest.mark.record_http
@pytest.mark.parametrize(
"source",
[
"CoinGecko",
# "CoinPaprika",
],
)
def test_exchanges(source):
df = sdk_helpers.exchanges(source=source)
assert isinstance(df, DataFrame)
assert not df.empty