Skip to content

Commit

Permalink
remove unused tag checks from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Feb 7, 2024
1 parent fe1ee04 commit 60f11fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions tests/test_manifests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,5 @@ def test_manifest(path, tag_to_schema):
assert "description" in manifest

for tag in manifest["tags"]:
if (
"time" not in tag["tag_uri"]
and "core" not in tag["tag_uri"]
and "unit" not in tag["tag_uri"]
and "wcs" not in tag["tag_uri"]
):
assert tag["tag_uri"] in tag_to_schema
schema = tag_to_schema[tag["tag_uri"]][0]
assert tag["schema_uri"] == schema["id"]
assert "title" in tag
assert "description" in tag
5 changes: 0 additions & 5 deletions tests/test_version_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ def test_version_map(path, schema_tags):
assert vm["FILE_FORMAT"] in VALID_FILE_FORMAT_VERSIONS
assert vm["YAML_VERSION"] in VALID_YAML_VERSIONS

for tag_base, tag_version in vm["tags"].items():
tag = f"{tag_base}-{tag_version}"
if "time" not in tag and "core" not in tag and "unit" not in tag and "wcs" not in tag:
assert tag in schema_tags, f"{path.name} specifies missing tag {tag}"

assert len(vm["tags"].keys()) == len(set(vm["tags"].keys())), f"{path.name} contains duplicate tags"

sorted_tags = sorted(list(vm["tags"].keys()))
Expand Down

0 comments on commit 60f11fc

Please sign in to comment.