Skip to content

Commit 922fce4

Browse files
authored
Merge pull request #75 from smarlowucf/flake8
Switch test requirement to pytest-flake8.
2 parents d07a9d0 + dccb93b commit 922fce4

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ matrix:
1616
before_install:
1717
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install 'coverage<4.0.0'; fi
1818
- pip install codecov
19+
- pip install 'py>=1.5.0'
1920
install:
2021
- pip install -e .
2122
- pip install -r requirements_dev.txt

requirements_dev.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
mock==2.0.0
22
pytest==3.5.0
3-
pytest-pep8
4-
pytest-flakes
3+
pytest-flake8
54
pytest-cov==2.5.1
65
flask

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def finalize_options(self):
3838
TestCommand.finalize_options(self)
3939
self.test_args = [
4040
'-sv',
41-
'--pep8',
42-
'--flakes',
41+
'--flake8',
4342
'--junitxml', 'reports/junit.xml',
4443
'--cov', 'openapi_core',
4544
'--cov-report', 'term-missing',

tests/integration/test_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def test_missing_body(self, validator):
283283

284284
def test_invalid_media_type_value(self, validator):
285285
request = MockRequest(self.host_url, 'get', '/v1/pets')
286-
response = MockResponse('\{\}')
286+
response = MockResponse("{}")
287287

288288
result = validator.validate(request, response)
289289

0 commit comments

Comments
 (0)