Skip to content

Commit d58ed3a

Browse files
committed
Add subcommands to test case
1 parent b94a8f3 commit d58ed3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_provision.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ def test_provision_conf_file(tox_project: ToxProjectCreator, tmp_path: Path, rel
230230
result = project.run("c", "--conf", conf_path, "-e", "py", from_cwd=tmp_path)
231231
result.assert_success()
232232

233-
234-
def test_provision_default_arguments_exists(tox_project: ToxProjectCreator) -> None:
233+
@pytest.mark.parametrize("subcommand", ["r", "p", "de", "l", "d", "c", "q", "e", "le"])
234+
def test_provision_default_arguments_exists(tox_project: ToxProjectCreator, subcommand) -> None:
235235
ini = "[tox]\nrequires = tox<4"
236-
outcome = tox_project({"tox.ini": ini}).run()
236+
outcome = tox_project({"tox.ini": ini}).run(subcommand)
237237
for argument in ["result_json", "hash_seed", "discover", "list_dependencies"]:
238238
assert hasattr(outcome.state.conf.options, argument)

0 commit comments

Comments
 (0)