1
0
fin-depo/test/test_nordnet.py

19 lines
345 B
Python
Raw Normal View History

2024-06-04 20:14:58 +00:00
import requests
2024-06-04 20:15:21 +00:00
from fin_depo import investbank_nordnet
2024-06-04 20:14:58 +00:00
SECRET_USERNAME = None
SECRET_PASSWORD = None
2024-06-04 20:15:21 +00:00
2024-06-04 20:14:58 +00:00
def test_get_depo():
session = requests.Session()
nordnet = investbank_nordnet.NordnetDepoFetcher(
2024-06-04 20:15:21 +00:00
session,
SECRET_USERNAME,
SECRET_PASSWORD,
2024-06-04 20:14:58 +00:00
)
depo = nordnet.get_depo()
assert depo is not None