1
0
fin-depo/test/test_kraken.py
Jon Michael Aanes bcae3d4e29
Some checks failed
Test Python / Test (push) Failing after 26s
Ruff
2024-07-27 03:14:12 +02:00

22 lines
409 B
Python

import pytest
import fin_depo
from . import secrets
needs_secrets = pytest.mark.skipif(
not secrets.KRAKEN_KEY,
reason='Secret kraken_USERNAME required',
)
@needs_secrets
def test_get_depo():
fetcher = fin_depo.defi_kraken.KrakenDepoFetcher(
secrets.KRAKEN_KEY,
secrets.KRAKEN_SECRET,
)
depo = fetcher.get_depo()
assert isinstance(depo, fin_depo.data.DepoSingle)