Skip to content

Commit

Permalink
don't test examples as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Mar 12, 2024
1 parent b9dc350 commit b363a25
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_example_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

import pytest

from bioimageio.spec._description import DISCOVER, LATEST
from bioimageio.spec._internal.types import FormatVersionPlaceholder
from tests.conftest import EXAMPLE_DESCRIPTIONS
from tests.utils import ParameterSet, check_bioimageio_yaml

Expand Down Expand Up @@ -48,18 +46,16 @@ def yield_invalid_descr_paths() -> Iterable[ParameterSet]:
}


@pytest.mark.parametrize("format_version", [DISCOVER, LATEST])
@pytest.mark.parametrize("descr_path,key", list(yield_valid_descr_paths()))
def test_example_descr_paths(
descr_path: Path,
key: str,
format_version: FormatVersionPlaceholder,
bioimageio_json_schema: Mapping[Any, Any],
):
check_bioimageio_yaml(
descr_path,
root=descr_path.parent,
as_latest=format_version == LATEST,
as_latest=False,
exclude_fields_from_roundtrip=EXCLUDE_FIELDS_FROM_ROUNDTRIP.get(key, set()),
bioimageio_json_schema=bioimageio_json_schema,
)
Expand Down

0 comments on commit b363a25

Please sign in to comment.