Skip to content

Commit

Permalink
Minor fix for test case class names (for format tests).
Browse files Browse the repository at this point in the history
They were showing up incorrectly in runner output because
the default __name__ is wrong for these.
  • Loading branch information
Julian committed Nov 28, 2022
1 parent fb203a5 commit bd12369
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jsonschema/tests/test_jsonschema_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ def leap_second(test):

TestDraft201909Format = DRAFT201909.to_unittest_testcase(
DRAFT201909.format_tests(),
name="TestDraft201909Format",
Validator=jsonschema.Draft201909Validator,
format_checker=jsonschema.Draft201909Validator.FORMAT_CHECKER,
skip=lambda test: (
Expand Down Expand Up @@ -532,6 +533,7 @@ def leap_second(test):

TestDraft202012Format = DRAFT202012.to_unittest_testcase(
DRAFT202012.format_tests(),
name="TestDraft202012Format",
Validator=jsonschema.Draft202012Validator,
format_checker=jsonschema.Draft202012Validator.FORMAT_CHECKER,
skip=lambda test: (
Expand Down

0 comments on commit bd12369

Please sign in to comment.