Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmartradio committed Aug 21, 2024
1 parent 0ea4f4e commit 66cd17e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_schemaRegistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def write_schema(root_dir, filename, version_major, version_minor):
# Generate a new schema for each version to avoid ID collisions.
schema = {
"name": "example",
"namespace": "lsst",
"namespace": f"lsst.v{version_major}_{version_minor}",
"type": "record",
"fields": [
{"name": "field%s%s" % (version_major, version_minor),
Expand Down Expand Up @@ -75,3 +75,7 @@ def test_from_filesystem(self):
for version in versions:
registry.get_by_version(version)
self.assertRaises(KeyError, registry.get_by_version, "2.2")

for id in registry.known_ids:
registry.get_by_id(id)
self.assertRaises(KeyError, registry.get_by_id, "202")

0 comments on commit 66cd17e

Please sign in to comment.