forked from openlawlibrary/taf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated taf.yubikey for issue openlawlibrary#501
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |