diff --git a/tests/conftest.py b/tests/conftest.py index ad01645b..0ad58b9d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -126,18 +126,6 @@ def _get_tag(schema): return None -@pytest.fixture(scope="session") -def tag_to_schema(schemas): - result = {} - for schema in schemas: - tag = _get_tag(schema) - if tag is not None: - if tag not in result: - result[tag] = [] - result[tag].append(schema) - return result - - @pytest.fixture(scope="session") def id_to_schema(schemas): result = {} @@ -150,7 +138,7 @@ def id_to_schema(schemas): @pytest.fixture(scope="session") -def assert_schema_correct(tag_to_schema, id_to_schema): +def assert_schema_correct(id_to_schema): def _assert_schema_correct(path): __tracebackhide__ = True @@ -180,9 +168,6 @@ def _assert_schema_correct(path): assert len(id_to_schema[schema["id"]]) == 1, f"{path.name} does not have a unique id" - if "tag" in schema: - assert len(tag_to_schema[schema["tag"]]) == 1, f"{path.name} does not have a unique tag" - id_base, _ = split_id(schema["id"]) for example_id in list_example_ids(schema): example_id_base, _ = split_id(example_id) diff --git a/tests/test_manifests.py b/tests/test_manifests.py index 1226b5b0..eca08b62 100644 --- a/tests/test_manifests.py +++ b/tests/test_manifests.py @@ -8,7 +8,7 @@ @pytest.mark.parametrize("path", MANIFEST_PATHS) -def test_manifest(path, tag_to_schema): +def test_manifest(path): manifest = load_yaml(path) with asdf.config_context() as config: