mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 15:32:04 +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>
35 lines
626 B
Python
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
|