Skip to content

Commit e3312e0

Browse files
committed
skip_torch flag for test with hidden torch dependency
1 parent 31e54cb commit e3312e0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777

7878
def pytest_configure():
7979

80-
# explicit skip flag needed for pytorch to onnx converter test
80+
# explicit skip flags needed for some tests
81+
pytest.skip_torch = skip_torch
8182
pytest.skip_onnx = skip_onnx
8283

8384
# load all model packages used in tests

tests/resource_io/test_load_rdf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def test_load_model_with_rel_str_source(unet2d_nuclei_broad_model):
9292
assert model
9393

9494

95+
@pytest.mark.skipif(pytest.skip_torch, reason="requires pytorch")
9596
def test_load_remote_model_with_folders():
9697
from bioimageio.core import load_resource_description, load_raw_resource_description
9798
from bioimageio.core.resource_io import nodes

0 commit comments

Comments
 (0)