Skip to content

Commit 47c91a0

Browse files
committed
Add a test for the 2019-09 $id lookup.
1 parent 978c00d commit 47c91a0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

jsonschema/tests/test_validators.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,19 @@ def test_draft_7(self):
15881588
validators.Draft7Validator,
15891589
)
15901590

1591+
def test_draft_201909(self):
1592+
schema = {"$schema": "https://json-schema.org/draft/2019-09/schema"}
1593+
self.assertIs(
1594+
validators.validator_for(schema),
1595+
validators.Draft201909Validator,
1596+
)
1597+
1598+
schema = {"$schema": "https://json-schema.org/draft/2019-09/schema#"}
1599+
self.assertIs(
1600+
validators.validator_for(schema),
1601+
validators.Draft201909Validator,
1602+
)
1603+
15911604
def test_draft_202012(self):
15921605
schema = {"$schema": "https://json-schema.org/draft/2020-12/schema"}
15931606
self.assertIs(

0 commit comments

Comments
 (0)