Skip to content

Commit

Permalink
add test skip
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Mar 15, 2024
1 parent 7dbb2ba commit e4ff1d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_mmcore.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from unittest.mock import Mock

import pytest
import pymmcore


Expand All @@ -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()

Expand All @@ -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

0 comments on commit e4ff1d1

Please sign in to comment.