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):
141141 )
142142 print (f"Found { count } tests." )
143143
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 ):
145153 """
146154 All test cases have unique test descriptions in their tests.
147155 """
Original file line number Diff line number Diff line change 342342 ]
343343 },
344344 {
345- "description" : " unicode characters do not match ascii ranges" ,
345+ "description" : " pattern with ASCII ranges" ,
346346 "schema" : { "pattern" : " [a-z]cole" },
347347 "tests" : [
348348 {
395395 ]
396396 },
397397 {
398- "description" : " unicode digits are more than 0 through 9 " ,
398+ "description" : " pattern with non-ASCII digits " ,
399399 "schema" : { "pattern" : " ^\\ p{digit}+$" },
400400 "tests" : [
401401 {
480480 ]
481481 },
482482 {
483- "description" : " unicode characters do not match ascii ranges" ,
483+ "description" : " patternProperties with ASCII ranges" ,
484484 "schema" : {
485485 "type" : " object" ,
486486 "patternProperties" : {
534534 ]
535535 },
536536 {
537- "description" : " unicode digits are more than 0 through 9 " ,
537+ "description" : " patternProperties with non-ASCII digits " ,
538538 "schema" : {
539539 "type" : " object" ,
540540 "patternProperties" : {
Original file line number Diff line number Diff line change 342342 ]
343343 },
344344 {
345- "description" : " unicode characters do not match ascii ranges" ,
345+ "description" : " pattern with ASCII ranges" ,
346346 "schema" : { "pattern" : " [a-z]cole" },
347347 "tests" : [
348348 {
384384 ]
385385 },
386386 {
387- "description" : " unicode digits are more than 0 through 9 " ,
387+ "description" : " pattern with non-ASCII digits " ,
388388 "schema" : { "pattern" : " ^\\ p{digit}+$" },
389389 "tests" : [
390390 {
469469 ]
470470 },
471471 {
472- "description" : " unicode characters do not match ascii ranges" ,
472+ "description" : " patternProperties with ASCII ranges" ,
473473 "schema" : {
474474 "type" : " object" ,
475475 "patternProperties" : {
523523 ]
524524 },
525525 {
526- "description" : " unicode digits are more than 0 through 9 " ,
526+ "description" : " patternProperties with non-ASCII digits " ,
527527 "schema" : {
528528 "type" : " object" ,
529529 "patternProperties" : {
Original file line number Diff line number Diff line change 342342 ]
343343 },
344344 {
345- "description" : " unicode characters do not match ascii ranges" ,
345+ "description" : " pattern with ASCII ranges" ,
346346 "schema" : { "pattern" : " [a-z]cole" },
347347 "tests" : [
348348 {
395395 ]
396396 },
397397 {
398- "description" : " unicode digits are more than 0 through 9 " ,
398+ "description" : " pattern with non-ASCII digits " ,
399399 "schema" : { "pattern" : " ^\\ p{digit}+$" },
400400 "tests" : [
401401 {
480480 ]
481481 },
482482 {
483- "description" : " unicode characters do not match ascii ranges" ,
483+ "description" : " patternProperties with ASCII ranges" ,
484484 "schema" : {
485485 "type" : " object" ,
486486 "patternProperties" : {
534534 ]
535535 },
536536 {
537- "description" : " unicode digits are more than 0 through 9 " ,
537+ "description" : " patternProperties with non-ASCII digits " ,
538538 "schema" : {
539539 "type" : " object" ,
540540 "patternProperties" : {
Original file line number Diff line number Diff line change 342342 ]
343343 },
344344 {
345- "description" : " unicode characters do not match ascii ranges" ,
345+ "description" : " pattern with ASCII ranges" ,
346346 "schema" : { "pattern" : " [a-z]cole" },
347347 "tests" : [
348348 {
384384 ]
385385 },
386386 {
387- "description" : " unicode digits are more than 0 through 9 " ,
387+ "description" : " pattern with non-ASCII digits " ,
388388 "schema" : { "pattern" : " ^\\ p{digit}+$" },
389389 "tests" : [
390390 {
469469 ]
470470 },
471471 {
472- "description" : " unicode characters do not match ascii ranges" ,
472+ "description" : " patternProperties with ASCII ranges" ,
473473 "schema" : {
474474 "type" : " object" ,
475475 "patternProperties" : {
523523 ]
524524 },
525525 {
526- "description" : " unicode digits are more than 0 through 9 " ,
526+ "description" : " patternProperties with non-ASCII digits " ,
527527 "schema" : {
528528 "type" : " object" ,
529529 "patternProperties" : {
Original file line number Diff line number Diff line change 342342 ]
343343 },
344344 {
345- "description" : " unicode characters do not match ascii ranges" ,
345+ "description" : " pattern with ASCII ranges" ,
346346 "schema" : { "pattern" : " [a-z]cole" },
347347 "tests" : [
348348 {
384384 ]
385385 },
386386 {
387- "description" : " unicode digits are more than 0 through 9 " ,
387+ "description" : " pattern with non-ASCII digits " ,
388388 "schema" : { "pattern" : " ^\\ p{digit}+$" },
389389 "tests" : [
390390 {
469469 ]
470470 },
471471 {
472- "description" : " unicode characters do not match ascii ranges" ,
472+ "description" : " patternProperties with ASCII ranges" ,
473473 "schema" : {
474474 "type" : " object" ,
475475 "patternProperties" : {
523523 ]
524524 },
525525 {
526- "description" : " unicode digits are more than 0 through 9 " ,
526+ "description" : " patternProperties with non-ASCII digits " ,
527527 "schema" : {
528528 "type" : " object" ,
529529 "patternProperties" : {
Original file line number Diff line number Diff line change 342342 ]
343343 },
344344 {
345- "description" : " unicode characters do not match ascii ranges" ,
345+ "description" : " pattern with ASCII ranges" ,
346346 "schema" : { "pattern" : " [a-z]cole" },
347347 "tests" : [
348348 {
384384 ]
385385 },
386386 {
387- "description" : " unicode digits are more than 0 through 9 " ,
387+ "description" : " pattern with non-ASCII digits " ,
388388 "schema" : { "pattern" : " ^\\ p{digit}+$" },
389389 "tests" : [
390390 {
469469 ]
470470 },
471471 {
472- "description" : " unicode characters do not match ascii ranges" ,
472+ "description" : " patternProperties with ASCII ranges" ,
473473 "schema" : {
474474 "type" : " object" ,
475475 "patternProperties" : {
523523 ]
524524 },
525525 {
526- "description" : " unicode digits are more than 0 through 9 " ,
526+ "description" : " patternProperties with non-ASCII digits " ,
527527 "schema" : {
528528 "type" : " object" ,
529529 "patternProperties" : {
You can’t perform that action at this time.
0 commit comments