@@ -423,8 +423,7 @@ def test_request_response_error(self, mock_unmarshal, spec_v31):
423
423
mock_unmarshal .return_value = ResultMock (error_to_raise = ValueError )
424
424
425
425
with pytest .raises (ValueError ):
426
- with pytest .warns (DeprecationWarning ):
427
- unmarshal_response (request , response , spec = spec_v31 )
426
+ unmarshal_response (request , response , spec = spec_v31 )
428
427
429
428
mock_unmarshal .assert_called_once_with (request , response )
430
429
@@ -597,15 +596,13 @@ def test_spec_invalid(self, spec_invalid):
597
596
request = mock .Mock (spec = Request )
598
597
599
598
with pytest .raises (SpecError ):
600
- with pytest .warns (DeprecationWarning ):
601
- validate_request (request , spec = spec_invalid )
599
+ validate_request (request , spec = spec_invalid )
602
600
603
601
def test_spec_not_detected (self , spec_v20 ):
604
602
request = mock .Mock (spec = Request )
605
603
606
604
with pytest .raises (SpecError ):
607
- with pytest .warns (DeprecationWarning ):
608
- validate_request (request , spec = spec_v20 )
605
+ validate_request (request , spec = spec_v20 )
609
606
610
607
def test_request_type_invalid (self , spec_v31 ):
611
608
request = mock .sentinel .request
@@ -733,8 +730,7 @@ def test_webhook_request_validator_not_found(self, spec_v30):
733
730
request = mock .Mock (spec = WebhookRequest )
734
731
735
732
with pytest .raises (SpecError ):
736
- with pytest .warns (DeprecationWarning ):
737
- validate_request (request , spec = spec_v30 )
733
+ validate_request (request , spec = spec_v30 )
738
734
739
735
@mock .patch (
740
736
"openapi_core.validation.request.validators.V31WebhookRequestValidator."
@@ -889,16 +885,14 @@ def test_spec_not_detected(self, spec_invalid):
889
885
response = mock .Mock (spec = Response )
890
886
891
887
with pytest .raises (SpecError ):
892
- with pytest .warns (DeprecationWarning ):
893
- validate_response (request , response , spec = spec_invalid )
888
+ validate_response (request , response , spec = spec_invalid )
894
889
895
890
def test_spec_not_supported (self , spec_v20 ):
896
891
request = mock .Mock (spec = Request )
897
892
response = mock .Mock (spec = Response )
898
893
899
894
with pytest .raises (SpecError ):
900
- with pytest .warns (DeprecationWarning ):
901
- validate_response (request , response , spec = spec_v20 )
895
+ validate_response (request , response , spec = spec_v20 )
902
896
903
897
def test_request_type_invalid (self , spec_v31 ):
904
898
request = mock .sentinel .request
@@ -965,8 +959,7 @@ def test_webhook_response_validator_not_found(self, spec_v30):
965
959
response = mock .Mock (spec = Response )
966
960
967
961
with pytest .raises (SpecError ):
968
- with pytest .warns (DeprecationWarning ):
969
- validate_response (request , response , spec = spec_v30 )
962
+ validate_response (request , response , spec = spec_v30 )
970
963
971
964
@mock .patch (
972
965
"openapi_core.validation.response.validators.V31WebhookResponseValidator."
0 commit comments