Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes conftest #367

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading