Merge pull request #75 from smarlowucf/flake8

Switch test requirement to pytest-flake8.
This commit is contained in:
A 2019-02-24 03:29:44 +00:00 committed by GitHub
commit 922fce4085
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View file

@ -16,6 +16,7 @@ matrix:
before_install:
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install 'coverage<4.0.0'; fi
- pip install codecov
- pip install 'py>=1.5.0'
install:
- pip install -e .
- pip install -r requirements_dev.txt

View file

@ -1,6 +1,5 @@
mock==2.0.0
pytest==3.5.0
pytest-pep8
pytest-flakes
pytest-flake8
pytest-cov==2.5.1
flask

View file

@ -38,8 +38,7 @@ class PyTest(TestCommand):
TestCommand.finalize_options(self)
self.test_args = [
'-sv',
'--pep8',
'--flakes',
'--flake8',
'--junitxml', 'reports/junit.xml',
'--cov', 'openapi_core',
'--cov-report', 'term-missing',

View file

@ -283,7 +283,7 @@ class TestResponseValidator(object):
def test_invalid_media_type_value(self, validator):
request = MockRequest(self.host_url, 'get', '/v1/pets')
response = MockResponse('\{\}')
response = MockResponse("{}")
result = validator.validate(request, response)