Skip to content

Commit 389f2c9

Browse files
committed
fix(ci): install test dependencies for functional test envs
The functional test environments (`cli_func_v4`, `api_func_v4`) were failing in CI with a `ValueError: no option named 'keep_containers'`. This occurred because the environments were missing the `requirements-test.txt` dependency, so `pytest` and its plugins (like `pytest-docker`) were not installed. A previous refactoring of `tox.ini` made the environments more isolated, exposing this latent dependency issue. This change adds the required test dependencies to the functional test environments, ensuring they are self-contained and run reliably.
1 parent bd6b425 commit 389f2c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,16 @@ exclude_lines =
139139
[testenv:cli_func_v4]
140140
description =
141141
Runs CLI functional tests. For a specific test: tox -e cli_func_v4 -- <path>
142-
deps = -r{toxinidir}/requirements-docker.txt
142+
deps = -r{toxinidir}/requirements-test.txt
143+
-r{toxinidir}/requirements-docker.txt
143144
commands =
144145
pytest --script-launch-mode=subprocess --cov --cov-report xml {posargs:tests/functional/cli}
145146

146147
[testenv:api_func_v4]
147148
description =
148149
Runs API functional tests. For a specific test: tox -e api_func_v4 -- <path>
149-
deps = -r{toxinidir}/requirements-docker.txt
150+
deps = -r{toxinidir}/requirements-test.txt
151+
-r{toxinidir}/requirements-docker.txt
150152
commands =
151153
pytest --cov --cov-report xml {posargs:tests/functional/api}
152154

0 commit comments

Comments
 (0)