|
42 | 42 | "https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_specs/models/" |
43 | 43 | "stardist_example_model/rdf_wrong_shape.yaml" |
44 | 44 | ), |
| 45 | + "stardist_wrong_shape2": ( |
| 46 | + "https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_specs/models/" |
| 47 | + "stardist_example_model/rdf_wrong_shape2.yaml" |
| 48 | + ), |
45 | 49 | } |
46 | 50 |
|
47 | 51 | try: |
|
94 | 98 | if tf_major_version == 1: |
95 | 99 | load_model_packages |= set(tensorflow1_models) |
96 | 100 | load_model_packages.add("stardist_wrong_shape") |
| 101 | + load_model_packages.add("stardist_wrong_shape2") |
97 | 102 | elif tf_major_version == 2: |
98 | 103 | load_model_packages |= set(tensorflow2_models) |
99 | 104 |
|
@@ -124,6 +129,12 @@ def stardist_wrong_shape(request): |
124 | 129 | return pytest.model_packages[request.param] |
125 | 130 |
|
126 | 131 |
|
| 132 | +# written as model group to automatically skip on missing tensorflow 1 |
| 133 | +@pytest.fixture(params=[] if skip_tensorflow or tf_major_version != 1 else ["stardist_wrong_shape2"]) |
| 134 | +def stardist_wrong_shape2(request): |
| 135 | + return pytest.model_packages[request.param] |
| 136 | + |
| 137 | + |
127 | 138 | # written as model group to automatically skip on missing tensorflow 1 |
128 | 139 | @pytest.fixture(params=[] if skip_tensorflow or tf_major_version != 1 else ["stardist"]) |
129 | 140 | def stardist(request): |
@@ -165,7 +176,7 @@ def any_tensorflow_js_model(request): |
165 | 176 | # fixture to test with all models that should run in the current environment |
166 | 177 | # we exclude stardist_wrong_shape here because it is not a valid model |
167 | 178 | # and included only to test that validation for this model fails |
168 | | -@pytest.fixture(params=load_model_packages - {"stardist_wrong_shape"}) |
| 179 | +@pytest.fixture(params=load_model_packages - {"stardist_wrong_shape", "stardist_wrong_shape2"}) |
169 | 180 | def any_model(request): |
170 | 181 | return pytest.model_packages[request.param] |
171 | 182 |
|
|
0 commit comments