File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -328,27 +328,6 @@ def test_request_override_param(self, spec_dict):
328
328
assert result .body is None
329
329
assert result .parameters == {}
330
330
331
- @pytest .mark .xfail
332
- def test_request_override_invalid_param (self , spec_dict ):
333
- # override parameter path parameter on operation
334
- # This here should result in an invalid spec object, because there are
335
- # now two parameters with the same name, but different location.
336
- # (The openapi3 spec is also not very explicit about this case)
337
- spec_dict ["paths" ]["/resource" ]["get" ]["parameters" ] = [
338
- {
339
- # full valid parameter object required
340
- "name" : "resId" ,
341
- "in" : "path" ,
342
- "required" : False ,
343
- "schema" : {
344
- "type" : "integer" ,
345
- },
346
- }
347
- ]
348
- from openapi_spec_validator .exceptions import OpenAPIValidationError
349
- with pytest .raises (OpenAPIValidationError ):
350
- create_spec (spec_dict )
351
-
352
331
353
332
class TestResponseValidator (object ):
354
333
You can’t perform that action at this time.
0 commit comments