Skip to content

Commit 93748d7

Browse files
committed
Test yield
1 parent 96a5783 commit 93748d7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
5757
# this runs the platform-specific tests declared in tox.ini
5858
- name: Test with tox
59-
uses: aganders3/headless-gui@v1 # GabrielBB/xvfb-action@v1
59+
uses: GabrielBB/xvfb-action@v1 # aganders3/headless-gui@v1
6060
with:
6161
run: python -m tox
6262
env:

napari_cellseg3d/_tests/test_plugin_inference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_inference(make_napari_viewer, qtbot):
2929
widget.start() # takes too long on Github Actions
3030
assert widget.worker is not None
3131

32-
# with qtbot.waitSignal(signal=widget.worker.finished, timeout=60000, raising=False) as blocker:
33-
# blocker.connect(widget.worker.errored)
32+
with qtbot.waitSignal(signal=widget.worker.yielded, timeout=60000, raising=False) as blocker:
33+
blocker.connect(widget.worker.errored)
3434

3535
# assert len(viewer.layers) == 2

napari_cellseg3d/_tests/test_training.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def test_training(make_napari_viewer, qtbot):
2323
widget.images_filepaths = [im_path]
2424
widget.labels_filepaths = [im_path]
2525
widget.epoch_choice.setValue(1)
26+
widget.val_interval_choice.setValue(1)
2627

2728
assert widget.check_ready()
2829

@@ -33,8 +34,8 @@ def test_training(make_napari_viewer, qtbot):
3334
widget.start()
3435
assert widget.worker is not None
3536

36-
# with qtbot.waitSignal(signal=widget.worker.finished, timeout=60000, raising=False) as blocker: # wait only for 60 seconds.
37-
# blocker.connect(widget.worker.errored)
37+
with qtbot.waitSignal(signal=widget.worker.yielded, timeout=60000, raising=False) as blocker: # wait only for 60 seconds.
38+
blocker.connect(widget.worker.errored)
3839

3940

4041
def test_update_loss_plot(make_napari_viewer):

0 commit comments

Comments
 (0)