Skip to content

Commit

Permalink
fix: don't use global instance in layer_scale test (#298)
Browse files Browse the repository at this point in the history
* fix: don't use global instance in layer_scale test

* use fixture instead

* style: [pre-commit.ci] auto fixes [...]

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
tlambert03 and pre-commit-ci[bot] authored Oct 26, 2023
1 parent df1b9af commit 887a980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_layer_scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import pytest
from napari_micromanager._mda_handler import _NapariMDAHandler
from napari_micromanager._mda_meta import SEQUENCE_META_KEY, SequenceMeta
from pymmcore_plus import CMMCorePlus

if TYPE_CHECKING:
from napari_micromanager.main_window import MainWindow
from pymmcore_plus import CMMCorePlus
from useq import MDASequence


Expand All @@ -17,10 +17,10 @@ def test_layer_scale(
make_napari_viewer,
mda_sequence_splits: MDASequence,
axis_order: str,
core: CMMCorePlus,
) -> None:
mmc = CMMCorePlus.instance()
mmc.loadSystemConfiguration()
viewer = make_napari_viewer()
mmc = core
handler = _NapariMDAHandler(mmc, viewer)

mmc.setProperty("Objective", "Label", "Nikon 20X Plan Fluor ELWD")
Expand Down

0 comments on commit 887a980

Please sign in to comment.