mirror of
https://github.com/correl/openapi-core.git
synced 2025-01-01 11:03:19 +00:00
Merge pull request #75 from smarlowucf/flake8
Switch test requirement to pytest-flake8.
This commit is contained in:
commit
922fce4085
4 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
mock==2.0.0
|
||||
pytest==3.5.0
|
||||
pytest-pep8
|
||||
pytest-flakes
|
||||
pytest-flake8
|
||||
pytest-cov==2.5.1
|
||||
flask
|
3
setup.py
3
setup.py
|
@ -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',
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue