Skip to content

Commit fdc3234

Browse files
committed
Clarity.
1 parent dbf586d commit fdc3234

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

jsonschema/tests/_suite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def optional_tests_of(self, name):
111111
path=self._path.descendant(["optional", name + ".json"]),
112112
)
113113

114-
def to_testcase(self, *suites, **kwargs):
114+
def to_unittest_testcase(self, *suites, **kwargs):
115115
name = kwargs.pop("name", "Test" + self.name.title())
116116
skip = kwargs.pop("skip", lambda test: None)
117117
methods = {

jsonschema/tests/test_jsonschema_test_suite.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def narrow_unicode_build(test): # pragma: no cover
6969
return
7070

7171

72-
TestDraft3 = DRAFT3.to_testcase(
72+
TestDraft3 = DRAFT3.to_unittest_testcase(
7373
DRAFT3.tests(),
7474
DRAFT3.optional_tests_of(name="format"),
7575
DRAFT3.optional_tests_of(name="bignum"),
@@ -88,7 +88,7 @@ def narrow_unicode_build(test): # pragma: no cover
8888
)
8989

9090

91-
TestDraft4 = DRAFT4.to_testcase(
91+
TestDraft4 = DRAFT4.to_unittest_testcase(
9292
DRAFT4.tests(),
9393
DRAFT4.optional_tests_of(name="format"),
9494
DRAFT4.optional_tests_of(name="bignum"),
@@ -114,7 +114,7 @@ def narrow_unicode_build(test): # pragma: no cover
114114
)
115115

116116

117-
TestDraft6 = DRAFT6.to_testcase(
117+
TestDraft6 = DRAFT6.to_unittest_testcase(
118118
DRAFT6.tests(),
119119
DRAFT6.optional_tests_of(name="format"),
120120
DRAFT6.optional_tests_of(name="bignum"),
@@ -140,7 +140,7 @@ def narrow_unicode_build(test): # pragma: no cover
140140
)
141141

142142

143-
TestDraft3LegacyTypeCheck = DRAFT3.to_testcase(
143+
TestDraft3LegacyTypeCheck = DRAFT3.to_unittest_testcase(
144144
DRAFT3.tests_of(name="type"),
145145
name="TestDraft3LegacyTypeCheck",
146146
Validator=create(
@@ -151,7 +151,7 @@ def narrow_unicode_build(test): # pragma: no cover
151151
)
152152

153153

154-
TestDraft4LegacyTypeCheck = DRAFT4.to_testcase(
154+
TestDraft4LegacyTypeCheck = DRAFT4.to_unittest_testcase(
155155
DRAFT4.tests_of(name="type"),
156156
name="TestDraft4LegacyTypeCheck",
157157
Validator=create(

0 commit comments

Comments
 (0)