File tree Expand file tree Collapse file tree 7 files changed +33
-25
lines changed Expand file tree Collapse file tree 7 files changed +33
-25
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,15 @@ class SanityTests(unittest.TestCase):
141
141
)
142
142
print (f"Found { count } tests." )
143
143
144
- def test_all_descriptions_are_unique (self ):
144
+ def test_all_case_descriptions_are_unique (self ):
145
+ """
146
+ All cases have unique descriptions in their files.
147
+ """
148
+ for path , cases in files (self .test_files ):
149
+ with self .subTest (path = path ):
150
+ self .assertUnique (case ["description" ] for case in cases )
151
+
152
+ def test_all_test_descriptions_are_unique (self ):
145
153
"""
146
154
All test cases have unique test descriptions in their tests.
147
155
"""
Original file line number Diff line number Diff line change 342
342
]
343
343
},
344
344
{
345
- "description" : " unicode characters do not match ascii ranges" ,
345
+ "description" : " pattern with ASCII ranges" ,
346
346
"schema" : { "pattern" : " [a-z]cole" },
347
347
"tests" : [
348
348
{
395
395
]
396
396
},
397
397
{
398
- "description" : " unicode digits are more than 0 through 9 " ,
398
+ "description" : " pattern with non-ASCII digits " ,
399
399
"schema" : { "pattern" : " ^\\ p{digit}+$" },
400
400
"tests" : [
401
401
{
480
480
]
481
481
},
482
482
{
483
- "description" : " unicode characters do not match ascii ranges" ,
483
+ "description" : " patternProperties with ASCII ranges" ,
484
484
"schema" : {
485
485
"type" : " object" ,
486
486
"patternProperties" : {
534
534
]
535
535
},
536
536
{
537
- "description" : " unicode digits are more than 0 through 9 " ,
537
+ "description" : " patternProperties with non-ASCII digits " ,
538
538
"schema" : {
539
539
"type" : " object" ,
540
540
"patternProperties" : {
Original file line number Diff line number Diff line change 342
342
]
343
343
},
344
344
{
345
- "description" : " unicode characters do not match ascii ranges" ,
345
+ "description" : " pattern with ASCII ranges" ,
346
346
"schema" : { "pattern" : " [a-z]cole" },
347
347
"tests" : [
348
348
{
384
384
]
385
385
},
386
386
{
387
- "description" : " unicode digits are more than 0 through 9 " ,
387
+ "description" : " pattern with non-ASCII digits " ,
388
388
"schema" : { "pattern" : " ^\\ p{digit}+$" },
389
389
"tests" : [
390
390
{
469
469
]
470
470
},
471
471
{
472
- "description" : " unicode characters do not match ascii ranges" ,
472
+ "description" : " patternProperties with ASCII ranges" ,
473
473
"schema" : {
474
474
"type" : " object" ,
475
475
"patternProperties" : {
523
523
]
524
524
},
525
525
{
526
- "description" : " unicode digits are more than 0 through 9 " ,
526
+ "description" : " patternProperties with non-ASCII digits " ,
527
527
"schema" : {
528
528
"type" : " object" ,
529
529
"patternProperties" : {
Original file line number Diff line number Diff line change 342
342
]
343
343
},
344
344
{
345
- "description" : " unicode characters do not match ascii ranges" ,
345
+ "description" : " pattern with ASCII ranges" ,
346
346
"schema" : { "pattern" : " [a-z]cole" },
347
347
"tests" : [
348
348
{
395
395
]
396
396
},
397
397
{
398
- "description" : " unicode digits are more than 0 through 9 " ,
398
+ "description" : " pattern with non-ASCII digits " ,
399
399
"schema" : { "pattern" : " ^\\ p{digit}+$" },
400
400
"tests" : [
401
401
{
480
480
]
481
481
},
482
482
{
483
- "description" : " unicode characters do not match ascii ranges" ,
483
+ "description" : " patternProperties with ASCII ranges" ,
484
484
"schema" : {
485
485
"type" : " object" ,
486
486
"patternProperties" : {
534
534
]
535
535
},
536
536
{
537
- "description" : " unicode digits are more than 0 through 9 " ,
537
+ "description" : " patternProperties with non-ASCII digits " ,
538
538
"schema" : {
539
539
"type" : " object" ,
540
540
"patternProperties" : {
Original file line number Diff line number Diff line change 342
342
]
343
343
},
344
344
{
345
- "description" : " unicode characters do not match ascii ranges" ,
345
+ "description" : " pattern with ASCII ranges" ,
346
346
"schema" : { "pattern" : " [a-z]cole" },
347
347
"tests" : [
348
348
{
384
384
]
385
385
},
386
386
{
387
- "description" : " unicode digits are more than 0 through 9 " ,
387
+ "description" : " pattern with non-ASCII digits " ,
388
388
"schema" : { "pattern" : " ^\\ p{digit}+$" },
389
389
"tests" : [
390
390
{
469
469
]
470
470
},
471
471
{
472
- "description" : " unicode characters do not match ascii ranges" ,
472
+ "description" : " patternProperties with ASCII ranges" ,
473
473
"schema" : {
474
474
"type" : " object" ,
475
475
"patternProperties" : {
523
523
]
524
524
},
525
525
{
526
- "description" : " unicode digits are more than 0 through 9 " ,
526
+ "description" : " patternProperties with non-ASCII digits " ,
527
527
"schema" : {
528
528
"type" : " object" ,
529
529
"patternProperties" : {
Original file line number Diff line number Diff line change 342
342
]
343
343
},
344
344
{
345
- "description" : " unicode characters do not match ascii ranges" ,
345
+ "description" : " pattern with ASCII ranges" ,
346
346
"schema" : { "pattern" : " [a-z]cole" },
347
347
"tests" : [
348
348
{
384
384
]
385
385
},
386
386
{
387
- "description" : " unicode digits are more than 0 through 9 " ,
387
+ "description" : " pattern with non-ASCII digits " ,
388
388
"schema" : { "pattern" : " ^\\ p{digit}+$" },
389
389
"tests" : [
390
390
{
469
469
]
470
470
},
471
471
{
472
- "description" : " unicode characters do not match ascii ranges" ,
472
+ "description" : " patternProperties with ASCII ranges" ,
473
473
"schema" : {
474
474
"type" : " object" ,
475
475
"patternProperties" : {
523
523
]
524
524
},
525
525
{
526
- "description" : " unicode digits are more than 0 through 9 " ,
526
+ "description" : " patternProperties with non-ASCII digits " ,
527
527
"schema" : {
528
528
"type" : " object" ,
529
529
"patternProperties" : {
Original file line number Diff line number Diff line change 342
342
]
343
343
},
344
344
{
345
- "description" : " unicode characters do not match ascii ranges" ,
345
+ "description" : " pattern with ASCII ranges" ,
346
346
"schema" : { "pattern" : " [a-z]cole" },
347
347
"tests" : [
348
348
{
384
384
]
385
385
},
386
386
{
387
- "description" : " unicode digits are more than 0 through 9 " ,
387
+ "description" : " pattern with non-ASCII digits " ,
388
388
"schema" : { "pattern" : " ^\\ p{digit}+$" },
389
389
"tests" : [
390
390
{
469
469
]
470
470
},
471
471
{
472
- "description" : " unicode characters do not match ascii ranges" ,
472
+ "description" : " patternProperties with ASCII ranges" ,
473
473
"schema" : {
474
474
"type" : " object" ,
475
475
"patternProperties" : {
523
523
]
524
524
},
525
525
{
526
- "description" : " unicode digits are more than 0 through 9 " ,
526
+ "description" : " patternProperties with non-ASCII digits " ,
527
527
"schema" : {
528
528
"type" : " object" ,
529
529
"patternProperties" : {
You can’t perform that action at this time.
0 commit comments