Skip to content

Commit 3380327

Browse files
committed
Cope with the format test structure change upstream.
Handles the change done in json-schema-org/JSON-Schema-Test-Suite#382.
1 parent c1fe75f commit 3380327

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jsonschema/tests/test_jsonschema_test_suite.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def narrow_unicode_build(test): # pragma: no cover
6868

6969
TestDraft3 = DRAFT3.to_unittest_testcase(
7070
DRAFT3.tests(),
71+
DRAFT3.format_tests(),
7172
DRAFT3.optional_tests_of(name="bignum"),
72-
DRAFT3.optional_tests_of(name="format"),
7373
DRAFT3.optional_tests_of(name="non-bmp-regex"),
7474
DRAFT3.optional_tests_of(name="zeroTerminatedFloats"),
7575
Validator=Draft3Validator,
@@ -79,7 +79,7 @@ def narrow_unicode_build(test): # pragma: no cover
7979
or missing_format(draft3_format_checker)(test)
8080
or skip(
8181
message="Upstream bug in strict_rfc3339",
82-
subject="format",
82+
subject="date-time",
8383
description="case-insensitive T and Z",
8484
)(test)
8585
),
@@ -88,8 +88,8 @@ def narrow_unicode_build(test): # pragma: no cover
8888

8989
TestDraft4 = DRAFT4.to_unittest_testcase(
9090
DRAFT4.tests(),
91+
DRAFT4.format_tests(),
9192
DRAFT4.optional_tests_of(name="bignum"),
92-
DRAFT4.optional_tests_of(name="format"),
9393
DRAFT4.optional_tests_of(name="non-bmp-regex"),
9494
DRAFT4.optional_tests_of(name="zeroTerminatedFloats"),
9595
Validator=Draft4Validator,
@@ -128,7 +128,7 @@ def narrow_unicode_build(test): # pragma: no cover
128128
)(test)
129129
or skip(
130130
message="Upstream bug in strict_rfc3339",
131-
subject="format",
131+
subject="date-time",
132132
description="case-insensitive T and Z",
133133
)(test)
134134
),
@@ -137,8 +137,8 @@ def narrow_unicode_build(test): # pragma: no cover
137137

138138
TestDraft6 = DRAFT6.to_unittest_testcase(
139139
DRAFT6.tests(),
140+
DRAFT6.format_tests(),
140141
DRAFT6.optional_tests_of(name="bignum"),
141-
DRAFT6.optional_tests_of(name="format"),
142142
DRAFT6.optional_tests_of(name="non-bmp-regex"),
143143
Validator=Draft6Validator,
144144
format_checker=draft6_format_checker,
@@ -176,7 +176,7 @@ def narrow_unicode_build(test): # pragma: no cover
176176
)(test)
177177
or skip(
178178
message="Upstream bug in strict_rfc3339",
179-
subject="format",
179+
subject="date-time",
180180
description="case-insensitive T and Z",
181181
)(test)
182182
),

0 commit comments

Comments
 (0)