aboutsummaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-19 11:14:59 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-10-19 16:55:05 +0200
commitcc6274bf154754772819b9b53957f48d242f9783 (patch)
tree264d15d05f280e5a2354e64914b81550aa63f223 /unittest
parentb0a06732852f3cdf203949a117e41c4b6f5f144b (diff)
downloadlibnitrokey-cc6274bf154754772819b9b53957f48d242f9783.tar.gz
libnitrokey-cc6274bf154754772819b9b53957f48d242f9783.tar.bz2
Tests: xfail TOTP 64bit only for Storage
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/test_bindings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py
index 7984848..80aa122 100644
--- a/unittest/test_bindings.py
+++ b/unittest/test_bindings.py
@@ -375,9 +375,9 @@ def test_HOTP_token(C):
assert hotp_code != 0
assert C.NK_get_last_command_status() == DeviceErrorCode.STATUS_OK
-# todo skip / xfail only for nk storage
-@pytest.mark.xfail(reason="bug in NK Storage TOTP firmware")
def test_TOTP_64bit_time(C):
+ if is_storage(C):
+ pytest.xfail('bug in NK Storage TOTP firmware')
oath = pytest.importorskip("oath")
T = 1
lib_at = lambda t: oath.totp(RFC_SECRET, t=t)