Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 19, 2024
1 parent 87a81ea commit 85a8801
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_unit/test_stitching_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,15 +376,15 @@ def test_on_stitch_button_clicked(
stitching_widget = stitching_widget_with_mosaic
stitching_widget.imagej_path = test_constants["MOCK_IMAGEJ_EXEC_PATH"]

mock_stitch_function = mocker.patch(
"brainglobe_stitch.stitching_widget.ImageMosaic.stitch",
mock_create_worker = mocker.patch(
"brainglobe_stitch.stitching_widget.create_worker",
autospec=True,
)

stitching_widget._on_stitch_button_clicked()

mock_stitch_function.assert_called_once_with(
stitching_widget.image_mosaic,
mock_create_worker.assert_called_once_with(
stitching_widget.image_mosaic.stitch,
stitching_widget.imagej_path,
resolution_level=2,
selected_channel="",
Expand Down

0 comments on commit 85a8801

Please sign in to comment.