mirror of
https://github.com/correl/openapi-core.git
synced 2025-01-04 03:00:15 +00:00
make flake8 happy
This commit is contained in:
parent
a8d7d9b9dc
commit
a1dfaf6adb
1 changed files with 3 additions and 2 deletions
|
@ -307,7 +307,8 @@ class TestPathItemParamsValidator(object):
|
||||||
|
|
||||||
@pytest.mark.xfail
|
@pytest.mark.xfail
|
||||||
def test_request_override_param(self, spec_dict):
|
def test_request_override_param(self, spec_dict):
|
||||||
# override parameter path parameter on operation (name and in property must match)
|
# override parameter path parameter on operation
|
||||||
|
# (name and in property must match)
|
||||||
spec_dict["paths"]["/resource"]["get"]["parameters"] = [
|
spec_dict["paths"]["/resource"]["get"]["parameters"] = [
|
||||||
{
|
{
|
||||||
# full valid parameter object required
|
# full valid parameter object required
|
||||||
|
@ -346,7 +347,7 @@ class TestPathItemParamsValidator(object):
|
||||||
]
|
]
|
||||||
from openapi_spec_validator.exceptions import OpenAPIValidationError
|
from openapi_spec_validator.exceptions import OpenAPIValidationError
|
||||||
with pytest.raises(OpenAPIValidationError):
|
with pytest.raises(OpenAPIValidationError):
|
||||||
spec = create_spec(spec_dict)
|
create_spec(spec_dict)
|
||||||
|
|
||||||
|
|
||||||
class TestResponseValidator(object):
|
class TestResponseValidator(object):
|
||||||
|
|
Loading…
Reference in a new issue