From 3f08b75a00e65606e8643acb430529fe6f5124d0 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Tue, 4 Jun 2024 22:14:58 +0200 Subject: [PATCH] Nordnet testing --- test/test_nordnet.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/test_nordnet.py diff --git a/test/test_nordnet.py b/test/test_nordnet.py new file mode 100644 index 0000000..1ac0328 --- /dev/null +++ b/test/test_nordnet.py @@ -0,0 +1,15 @@ +import pytest +from fin_depo import investbank_nordnet +import requests + +SECRET_USERNAME = None +SECRET_PASSWORD = None + +def test_get_depo(): + session = requests.Session() + nordnet = investbank_nordnet.NordnetDepoFetcher( + session, SECRET_USERNAME, SECRET_PASSWORD + ) + + depo = nordnet.get_depo() + assert depo is not None