aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--unittest/test_offline.py14
2 files changed, 8 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index d24025e..7dbcb38 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,6 +24,7 @@ matrix:
- g++-5
- python3
- python3-pip
+ - git
sources: &sources
- ubuntu-toolchain-r-test
script:
diff --git a/unittest/test_offline.py b/unittest/test_offline.py
index ae2638f..51fe67d 100644
--- a/unittest/test_offline.py
+++ b/unittest/test_offline.py
@@ -24,16 +24,16 @@ import re
def test_offline(C_offline):
+ C_offline.NK_set_debug(False)
+ C_offline.NK_set_debug_level(4)
+ assert C_offline.NK_get_major_library_version() == 3
+ assert C_offline.NK_get_minor_library_version() >= 3
+ assert C_offline.NK_login_auto() == 0
+
libnk_version = gs(C_offline.NK_get_library_version())
assert libnk_version
print(libnk_version)
# v3.4.1-29-g1f3d
search = re.search(b'v\d\.\d(\.\d)?', libnk_version)
- assert search is not None
-
- C_offline.NK_set_debug(False)
- C_offline.NK_set_debug_level(4)
- assert C_offline.NK_get_major_library_version() == 3
- assert C_offline.NK_get_minor_library_version() >= 3
- assert C_offline.NK_login_auto() == 0
+ assert search is not None \ No newline at end of file