Skip to content

Commit

Permalink
Fixed macOS tests for real
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Feb 8, 2024
1 parent ccff915 commit d73bc47
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_unit/test_big_stitcher_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
XML_PATH_WINDOWS = Path("C:/stitching/Brain2/bdv.xml")
TILE_CONFIG_PATH_WINDOWS = Path("C:/stitching/Brain2/bdv_tile_config.txt")

IMAGEJ_PATH_MAC = Path("/Users/user/Fiji.app/Contents/MacOS/ImageJ-macosx")
IMAGEJ_PATH_MAC = Path("/Users/user/Fiji.app")
IMAGEJ_PATH_MAC_CHECK = Path(
"/Users/user/Fiji.app/Fiji.app/Contents/MacOS/ImageJ-macosx"
)
XML_PATH_MAC = Path("/Users/user/stitching/Brain2/bdv.xml")
TILE_CONFIG_PATH_MAC = Path("/Users/user/stitching/Brain2/bdv_tile_config.txt")

Expand All @@ -33,6 +36,9 @@ def test_run_big_stitcher_defaults(mocker):

macro_path = files("brainglobe_stitch").joinpath("bigstitcher_macro.ijm")

if platform.startswith("darwin"):
imagej_path = IMAGEJ_PATH_MAC_CHECK

command = (
f"{imagej_path} --ij2"
f" --headless -macro {macro_path} "
Expand Down Expand Up @@ -87,6 +93,9 @@ def test_run_big_stitcher(

macro_path = files("brainglobe_stitch").joinpath("bigstitcher_macro.ijm")

if platform.startswith("darwin"):
imagej_path = IMAGEJ_PATH_MAC_CHECK

command = (
f"{imagej_path} --ij2"
f" --headless -macro {macro_path} "
Expand Down

0 comments on commit d73bc47

Please sign in to comment.