1
0
fin-depo/test/test_kraken.py
Jon Michael Aanes 677e2af74c
All checks were successful
Test Python / Test (push) Successful in 27s
Expose data in __init__
2024-07-21 11:15:13 +02:00

24 lines
458 B
Python

import pytest
import requests
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():
session = requests.Session()
fetcher = fin_depo.defi_kraken.KrakenDepoFetcher(
secrets.KRAKEN_KEY,
secrets.KRAKEN_SECRET,
)
depo = fetcher.get_depo()
assert isinstance(depo, fin_depo.data.DepoSingle)