@@ -384,7 +384,6 @@ def test_string_invalid(self, value, validator_factory):
384
384
@pytest .mark .parametrize (
385
385
"value" ,
386
386
[
387
- b"true" ,
388
387
"test" ,
389
388
False ,
390
389
1 ,
@@ -441,7 +440,6 @@ def test_string_format_uuid(self, value, validator_factory):
441
440
@pytest .mark .parametrize (
442
441
"value" ,
443
442
[
444
- b"true" ,
445
443
"true" ,
446
444
False ,
447
445
1 ,
@@ -464,7 +462,6 @@ def test_string_format_uuid_invalid(self, value, validator_factory):
464
462
@pytest .mark .parametrize (
465
463
"value" ,
466
464
[
467
- b"true" ,
468
465
"true" ,
469
466
False ,
470
467
1 ,
@@ -483,57 +480,6 @@ def test_string_format_datetime_invalid(self, value, validator_factory):
483
480
with pytest .raises (InvalidSchemaValue ):
484
481
validator_factory (spec ).validate (value )
485
482
486
- @pytest .mark .parametrize (
487
- "value" ,
488
- [
489
- "1989-01-02T00:00:00Z" ,
490
- "2018-01-02T23:59:59Z" ,
491
- ],
492
- )
493
- @mock .patch (
494
- "openapi_schema_validator._format." "DATETIME_HAS_STRICT_RFC3339" , True
495
- )
496
- @mock .patch (
497
- "openapi_schema_validator._format." "DATETIME_HAS_ISODATE" , False
498
- )
499
- def test_string_format_datetime_strict_rfc3339 (
500
- self , value , validator_factory
501
- ):
502
- schema = {
503
- "type" : "string" ,
504
- "format" : "date-time" ,
505
- }
506
- spec = Spec .from_dict (schema )
507
-
508
- result = validator_factory (spec ).validate (value )
509
-
510
- assert result is None
511
-
512
- @pytest .mark .parametrize (
513
- "value" ,
514
- [
515
- "1989-01-02T00:00:00Z" ,
516
- "2018-01-02T23:59:59Z" ,
517
- ],
518
- )
519
- @mock .patch (
520
- "openapi_schema_validator._format." "DATETIME_HAS_STRICT_RFC3339" ,
521
- False ,
522
- )
523
- @mock .patch (
524
- "openapi_schema_validator._format." "DATETIME_HAS_ISODATE" , True
525
- )
526
- def test_string_format_datetime_isodate (self , value , validator_factory ):
527
- schema = {
528
- "type" : "string" ,
529
- "format" : "date-time" ,
530
- }
531
- spec = Spec .from_dict (schema )
532
-
533
- result = validator_factory (spec ).validate (value )
534
-
535
- assert result is None
536
-
537
483
@pytest .mark .parametrize (
538
484
"value" ,
539
485
[
0 commit comments