add tests for reverse proxies

This commit is contained in:
Daniel Grossmann-Kavanagh
2019-01-12 23:16:57 -08:00
parent 2b23b75ce0
commit c672c85c00
7 changed files with 210 additions and 5 deletions

View File

@@ -47,9 +47,10 @@ tests_require = [
swagger_ui_require
]
if sys.version_info[0] >= 3:
if sys.version_info >= (3, 5, 3):
tests_require.extend(aiohttp_require)
tests_require.append('pytest-aiohttp')
tests_require.append('aiohttp-remotes')
class PyTest(TestCommand):
@@ -61,7 +62,7 @@ class PyTest(TestCommand):
self.cov = None
self.pytest_args = ['--cov', 'connexion', '--cov-report', 'term-missing', '-v']
if sys.version_info[0] < 3:
if sys.version_info < (3, 5, 3):
self.pytest_args.append('--cov-config=py2-coveragerc')
self.pytest_args.append('--ignore=tests/aiohttp')
else: