From b5f844521a01fd604b693846183f4154ed3c9003 Mon Sep 17 00:00:00 2001 From: Yukta Kulkarni Date: Thu, 26 Sep 2024 20:48:52 -0400 Subject: [PATCH] Added pytest check for ykman module in test_ykman.py for issue #501 --- tests/test_ykman.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_ykman.py b/tests/test_ykman.py index e69de29bb..08a4806fb 100644 --- a/tests/test_ykman.py +++ b/tests/test_ykman.py @@ -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 \ No newline at end of file