Some of these tests being pulled in are duplicates. Let's consolidate
into requirements-test.txt as the source of truth.
Change-Id: I2481a364b9ddf2aa0ba9e2168d4ee408ca477c43
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
with open('requirements.txt') as f:
install_reqs = f.read().splitlines()
+with open('requirements-test.txt') as f:
+ f.readline() # Skip the first -rrequirements.txt line
+ test_reqs = f.read().splitlines()
+
setup(
setup_requires=['pbr', 'pytest-runner'],
pbr=True,
'tests.*',
'tests'
]),
- tests_require=['pytest'],
+ tests_require=test_reqs,
)
py3
[testenv]
-deps =
- -r{toxinidir}/requirements.txt
- -r{toxinidir}/requirements-test.txt
- pytest
- pytest-click
- pytest-datafiles
+deps = -r{toxinidir}/requirements-test.txt
commands = pytest
[testenv:check-hooks]