From e4ff1d1e87935a7f5818aee6c17ed6fe7d392b30 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Fri, 15 Mar 2024 15:40:01 -0400 Subject: [PATCH] add test skip --- tests/test_mmcore.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_mmcore.py b/tests/test_mmcore.py index e10e477..a4c7b9c 100644 --- a/tests/test_mmcore.py +++ b/tests/test_mmcore.py @@ -1,4 +1,6 @@ from unittest.mock import Mock + +import pytest import pymmcore @@ -18,6 +20,7 @@ def test_core(): assert pymmcore_version[3] == dev_interface_version +@pytest.mark.skipif(pymmcore.POLYMORPHIC_MODE == 0, reason="POLYMORPHIC_MODE is 0") def test_polymorphism(): mock = Mock() @@ -29,5 +32,3 @@ def setFocusDevice(self, focusLabel: str) -> None: lbl = "" core.setProperty(pymmcore.g_Keyword_CoreDevice, pymmcore.g_Keyword_CoreFocus, lbl) mock.assert_called_once_with(lbl) - - assert pymmcore.POLYMORPHIC_MMCORE == 1