tests: Easier installation of test requirements via PIP

Burying these behind the tox.ini works fine on CI, but it means that
someone has to ask the users to run an extra `pip install pytest` for
the test suite. Not nice.

This will need a follow-up commit to adjust the GitHub action to use
this new simplified way. That cannot land via Gerrit due to GitHub's
permission model.

Change-Id: I8d2e610c91da728d72c7d19590b25bbd8713f0de
This commit is contained in:
Jan Kundrát
2022-07-05 12:23:01 +02:00
parent 128a6e816b
commit b86fe96032
2 changed files with 2 additions and 1 deletions

1
tests/requirements.txt Normal file
View File

@@ -0,0 +1 @@
pytest>=6.2.5,<7

View File

@@ -4,7 +4,7 @@ skipsdist = True
[testenv]
deps =
-r{toxinidir}/requirements.txt
pytest>=6.2.5,<7
-r{toxinidir}/tests/requirements.txt
cover: pytest-cov
linters: flake8
linters: pep8-naming