Skip to content

Commit e338e6f

Browse files
committed
remove suffix tests
we now check with zipfile.is_zipfile if source is a package and ignore the suffixes
1 parent 46ab2cd commit e338e6f

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

tests/resource_io/test_load_rdf.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,6 @@ def test_load_non_existing_rdf():
1818
load_resource_description(spec_path)
1919

2020

21-
def test_load_non_valid_rdf_name_no_suffix():
22-
from bioimageio.core import load_resource_description
23-
24-
with NamedTemporaryFile() as f:
25-
spec_path = pathlib.Path(f.name)
26-
27-
with pytest.raises(ValidationError):
28-
load_resource_description(spec_path)
29-
30-
31-
def test_load_non_valid_rdf_name_invalid_suffix():
32-
from bioimageio.core import load_resource_description
33-
34-
with NamedTemporaryFile(suffix=".invalid_suffix") as f:
35-
spec_path = pathlib.Path(f.name)
36-
37-
with pytest.raises(ValidationError):
38-
load_resource_description(spec_path)
39-
40-
4121
def test_load_raw_model(any_model):
4222
from bioimageio.core import load_raw_resource_description
4323

0 commit comments

Comments
 (0)