Skip to content

Commit

Permalink
Crawl the registry so it isn't continually recrawled.
Browse files Browse the repository at this point in the history
Fixes this getting lost while refactoring...

Closes: #31
  • Loading branch information
Julian committed Nov 30, 2023
1 parent ba45c70 commit a2fec38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jsonschema_specifications/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

#: A `referencing.jsonschema.SchemaRegistry` containing all of the official
#: meta-schemas and vocabularies.
REGISTRY = _schemas() @ _EMPTY_REGISTRY
REGISTRY = (_schemas() @ _EMPTY_REGISTRY).crawl()
__all__ = ["REGISTRY"]
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ def test_it_contains_metaschemas():
assert isinstance(schema, Mapping)
assert schema["$id"] == "http://json-schema.org/draft-07/schema#"
assert schema["title"] == "Core schema meta-schema"


def test_it_is_crawled():
assert REGISTRY.crawl() == REGISTRY

0 comments on commit a2fec38

Please sign in to comment.