File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11import bioimageio .spec as spec
22from bioimageio .core import load_raw_resource_description , load_resource_description
3+ from bioimageio .core .resource_io import nodes
34from bioimageio .core .resource_io .utils import resolve_source
45from marshmallow import missing
56
@@ -84,11 +85,12 @@ def _test_build_spec(
8485 build_model (** kwargs )
8586 assert out_path .exists ()
8687 loaded_model = load_resource_description (out_path )
88+ assert isinstance (loaded_model , nodes .Model )
8789 if add_deepimagej_config :
8890 loaded_config = loaded_model .config
8991 assert "deepimagej" in loaded_config
9092
91- attachments = loaded_model .attachments
93+ attachments = loaded_model .attachments or {}
9294 if "files" in attachments :
9395 for attached_file in attachments ["files" ]:
9496 assert attached_file .exists ()
You can’t perform that action at this time.
0 commit comments