1
0
fin-depo/test/test_kraken.py

24 lines
440 B
Python
Raw Permalink Normal View History

2024-07-20 18:19:52 +00:00
import pytest
import requests
2024-07-20 18:21:50 +00:00
from fin_depo import defi_kraken
2024-07-20 18:19:52 +00:00
from . import secrets
needs_secrets = pytest.mark.skipif(
not secrets.KRAKEN_KEY,
reason='Secret kraken_USERNAME required',
)
2024-07-20 18:21:50 +00:00
2024-07-20 18:19:52 +00:00
@needs_secrets
def test_get_depo():
session = requests.Session()
fetcher = defi_kraken.KrakenDepoFetcher(
secrets.KRAKEN_KEY,
secrets.KRAKEN_SECRET,
)
depo = fetcher.get_depo()
assert depo is not None