Skip to content

Commit 2192b74

Browse files
committed
TST: test for communication with save-restore
1 parent 08b4f35 commit 2192b74

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_package.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import importlib.metadata
44

55
import save_and_restore_api as m
6+
from save_and_restore_api.tools.upload import SaveRestoreAPI
67

78

89
def test_version():
@@ -11,3 +12,13 @@ def test_version():
1112

1213
def test_import():
1314
from save_and_restore_api.tools.upload import SaveRestoreAPI # noqa: F401
15+
16+
17+
def test_comm():
18+
SR = SaveRestoreAPI(base_url="http://localhost:8080", timeout=2)
19+
SR._username = "user"
20+
SR._password = "userPass"
21+
SR.open()
22+
SR.login()
23+
SR.get_node(SR.ROOT_NODE_UID)
24+
SR.close()

0 commit comments

Comments
 (0)