Skip to content

Commit b355829

Browse files
committed
add test for issue 289
1 parent 12b363e commit b355829

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_resource_tests/test_test_model.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,14 @@ def test_validation_section_warning(unet2d_nuclei_broad_model, tmp_path: pathlib
5656
assert summary["name"] == "Test documentation completeness."
5757
assert summary["warnings"] == {}
5858
assert summary["status"] == "passed"
59+
60+
61+
def test_issue289():
62+
"""test for failure case from https://github.com/bioimage-io/core-bioimage-io-python/issues/289"""
63+
import bioimageio.core
64+
from bioimageio.core.resource_tests import test_model
65+
66+
doi = "10.5281/zenodo.6287342"
67+
model_resource = bioimageio.core.load_resource_description(doi)
68+
test_result = test_model(model_resource)
69+
assert all(t["status"] == "success" for t in test_result)

0 commit comments

Comments
 (0)