Skip to content

Commit a788915

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_provision.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,9 @@ def test_provision_conf_file(tox_project: ToxProjectCreator, tmp_path: Path, rel
231231
result.assert_success()
232232

233233

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

0 commit comments

Comments
 (0)