Skip to content

Commit

Permalink
Merge pull request #367 from Tomaz-Vieira/spec_v0_5__fix_conftest
Browse files Browse the repository at this point in the history
Fixes conftest
  • Loading branch information
FynnBe authored Nov 24, 2023
2 parents 7a94ce9 + 8766023 commit f2c3f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from pytest import FixtureRequest, fixture

os.environ["BIOIMAGEIO_COUNT_RDF_DOWNLOADS"] = "false" # disable tracking before bioimageio imports
from bioimageio.core import write_package
from bioimageio.spec import __version__ as bioimageio_spec_version
from bioimageio.spec._package import save_bioimageio_package

logger = logging.getLogger(__name__)
warnings.warn(f"testing with bioimageio.spec {bioimageio_spec_version}")
Expand Down Expand Up @@ -133,7 +133,7 @@

@fixture(scope="session")
def model_packages():
return MappingProxyType({name: write_package(MODEL_SOURCES[name]) for name in load_model_packages})
return MappingProxyType({name: save_bioimageio_package(MODEL_SOURCES[name]) for name in load_model_packages})


@fixture(scope="session")
Expand Down

0 comments on commit f2c3f82

Please sign in to comment.