24 lines
474 B
Python
24 lines
474 B
Python
|
import pytest
|
||
|
import requests
|
||
|
|
||
|
from fin_depo import data, defi_kucoin
|
||
|
|
||
|
from . import secrets
|
||
|
|
||
|
needs_secrets = pytest.mark.skipif(
|
||
|
not secrets.KUCOIN_KEY,
|
||
|
reason='Secret kucoin_USERNAME required',
|
||
|
)
|
||
|
|
||
|
@needs_secrets
|
||
|
def test_get_depo():
|
||
|
session = requests.Session()
|
||
|
fetcher = defi_kucoin.KucoinDepoFetcher(
|
||
|
secrets.KUCOIN_KEY,
|
||
|
secrets.KUCOIN_SECRET,
|
||
|
secrets.KUCOIN_PASS,
|
||
|
)
|
||
|
|
||
|
depo = fetcher.get_depo()
|
||
|
assert depo is not None
|