Changes requested by @prawn-cake:

- Unified the python version checking
 - Fixed the endpoint name registration on AioHttpApi
This commit is contained in:
Diogo Dutra
2017-11-09 16:28:23 -02:00
committed by Diogo
parent 09daab63ca
commit d1565cf259
7 changed files with 52 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ tests_require = [
flask_require
]
if sys.version_info >= (3, 4):
if sys.version_info[0] >= 3:
tests_require.extend(aiohttp_require)
tests_require.append(ujson_require)
tests_require.append('pytest-aiohttp')
@@ -63,7 +63,7 @@ class PyTest(TestCommand):
self.cov = None
self.pytest_args = ['--cov', 'connexion', '--cov-report', 'term-missing', '-v']
if sys.version_info < (3, 4):
if sys.version_info[0] < 3:
self.pytest_args.append('--cov-config=py2-coveragerc')
self.pytest_args.append('--ignore=tests/aiohttp')