mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
* removed get_coinpaprika_id from the view * reorganized a bit * removed unused functions * removed unused functions * removed unused imports * cleaning * cleaning * fix tests * fix template report * fix template report * fixing imports * fixing imports * fix report * fix report * fix report * fix tests * small fixes after merge * linting * split find into view and model * added tests for view * add tests to model * black * unused import * disbale import oustise top level * removed view from sdk * added example
79 lines
1.3 KiB
Python
79 lines
1.3 KiB
Python
# IMPORTATION STANDARD
|
|
|
|
# IMPORTATION THIRDPARTY
|
|
import pytest
|
|
|
|
# IMPORTATION INTERNAL
|
|
from openbb_terminal.cryptocurrency import crypto_views
|
|
|
|
|
|
@pytest.mark.vcr
|
|
@pytest.mark.parametrize(
|
|
"query, source, key",
|
|
[
|
|
[
|
|
"btc",
|
|
"CoinGecko",
|
|
"id",
|
|
],
|
|
[
|
|
"bt",
|
|
"CoinGecko",
|
|
"symbol",
|
|
],
|
|
[
|
|
"doge",
|
|
"CoinGecko",
|
|
"name",
|
|
],
|
|
[
|
|
"btc",
|
|
"CoinPaprika",
|
|
"id",
|
|
],
|
|
[
|
|
"bt",
|
|
"CoinPaprika",
|
|
"symbol",
|
|
],
|
|
[
|
|
"doge",
|
|
"CoinPaprika",
|
|
"name",
|
|
],
|
|
[
|
|
"btc",
|
|
"Binance",
|
|
"id",
|
|
],
|
|
[
|
|
"bt",
|
|
"Binance",
|
|
"id",
|
|
],
|
|
[
|
|
"doge",
|
|
"Binance",
|
|
"id",
|
|
],
|
|
[
|
|
"btc",
|
|
"Coinbase",
|
|
"id",
|
|
],
|
|
[
|
|
"bt",
|
|
"Coinbase",
|
|
"symbol",
|
|
],
|
|
[
|
|
"doge",
|
|
"Coinbase",
|
|
"name",
|
|
],
|
|
],
|
|
)
|
|
@pytest.mark.record_stdout
|
|
def test_find(query, source, key):
|
|
crypto_views.find(query=query, source=source, key=key)
|