Skip to content

Commit

Permalink
Added pytest check for ykman module in test_ykman.py for issue openla…
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukta Kulkarni authored and Yukta Kulkarni committed Sep 27, 2024
1 parent a8a95b6 commit b5f8445
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_ykman.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import pytest
try:
from ykman.device import list_all_devices
YKMAN_AVAILABLE = True
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

0 comments on commit b5f8445

Please sign in to comment.