Skip to content

Commit

Permalink
Updated taf.yubikey for issue openlawlibrary#501
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukta Kulkarni authored and Yukta Kulkarni committed Sep 28, 2024
1 parent b45bd9c commit 9819b8f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_ykman.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import pytest

try:
from ykman.device import list_all_devices
YKMAN_AVAILABLE = True
import taf.yubikey as yk
YKMAN_AVAILABLE = yk.YKMAN_AVAILABLE
except ImportError:
YKMAN_AVAILABLE = False

@pytest.mark.skipif(not YKMAN_AVAILABLE, reason="ykman module is not available")
def test_some_function_that_uses_ykman():
pass
@pytest.mark.skipif(not YKMAN_AVAILABLE, reason="taf.yubikey or ykman module is not available")
def test_repository_tool_function_that_uses_yubikey():
assert yk.some_function_using_ykman() is not None

pytest

0 comments on commit 9819b8f

Please sign in to comment.