Skip to content

Commit

Permalink
Up openapi-spec-validator version; swith to pytest-order
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers committed Oct 23, 2023
1 parent fe8a561 commit 2211450
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_outdated_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
python-version: [ "3.11" ]
responses-version: ["0.13.0", "0.15.0", "0.17.0", "0.19.0", "0.20.0" ]
werkzeug-version: ["2.0.1", "2.1.1", "2.2.2"]
openapi-spec-validator-version: ["0.4.0", "0.5.0"]
openapi-spec-validator-version: ["0.5.0"]

steps:
- name: Checkout repository
Expand Down
8 changes: 2 additions & 6 deletions moto/apigateway/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from urllib.parse import urlparse

from openapi_spec_validator import validate_spec
import requests
import responses

try:
from openapi_spec_validator.validation.exceptions import OpenAPIValidationError
except ImportError:
# OpenAPI Spec Validator < 0.5.0
from openapi_spec_validator.exceptions import OpenAPIValidationError # type: ignore
from openapi_spec_validator import validate_spec
from openapi_spec_validator.validation.exceptions import OpenAPIValidationError
from moto.core import BaseBackend, BackendDict, BaseModel, CloudFormationModel
from .utils import create_id, to_path
from moto.core.utils import path_url
Expand Down
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coverage
pytest
pytest-cov
pytest-ordering
pytest-order
pytest-xdist
freezegun
pylint
Expand Down
12 changes: 6 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ all =
PyYAML>=5.1
cfn-lint>=0.40.0
sshpubkeys>=3.1.0
openapi-spec-validator>=0.2.8
openapi-spec-validator>=0.5.0
pyparsing>=3.0.7
jsondiff>=1.1.2
py-partiql-parser==0.4.1
Expand All @@ -64,7 +64,7 @@ proxy =
PyYAML>=5.1
cfn-lint>=0.40.0
sshpubkeys>=3.1.0
openapi-spec-validator>=0.2.8
openapi-spec-validator>=0.5.0
pyparsing>=3.0.7
jsondiff>=1.1.2
py-partiql-parser==0.4.1
Expand All @@ -79,7 +79,7 @@ server =
PyYAML>=5.1
cfn-lint>=0.40.0
sshpubkeys>=3.1.0
openapi-spec-validator>=0.2.8
openapi-spec-validator>=0.5.0
pyparsing>=3.0.7
jsondiff>=1.1.2
py-partiql-parser==0.4.1
Expand All @@ -94,7 +94,7 @@ apigateway =
PyYAML>=5.1
python-jose[cryptography]>=3.1.0,<4.0.0
ecdsa!=0.15
openapi-spec-validator>=0.2.8
openapi-spec-validator>=0.5.0
apigatewayv2 = PyYAML>=5.1
applicationautoscaling =
appsync = graphql-core
Expand All @@ -113,7 +113,7 @@ cloudformation =
PyYAML>=5.1
cfn-lint>=0.40.0
sshpubkeys>=3.1.0
openapi-spec-validator>=0.2.8
openapi-spec-validator>=0.5.0
pyparsing>=3.0.7
jsondiff>=1.1.2
py-partiql-parser==0.4.1
Expand Down Expand Up @@ -202,7 +202,7 @@ resourcegroupstaggingapi =
PyYAML>=5.1
cfn-lint>=0.40.0
sshpubkeys>=3.1.0
openapi-spec-validator>=0.2.8
openapi-spec-validator>=0.5.0
pyparsing>=3.0.7
jsondiff>=1.1.2
py-partiql-parser==0.4.1
Expand Down

0 comments on commit 2211450

Please sign in to comment.