Skip to content

Commit

Permalink
Add subcommands to test case
Browse files Browse the repository at this point in the history
  • Loading branch information
seyidaniels committed Mar 20, 2024
1 parent b94a8f3 commit a788915
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_provision.py
Expand Up @@ -231,8 +231,9 @@ def test_provision_conf_file(tox_project: ToxProjectCreator, tmp_path: Path, rel
result.assert_success()


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

0 comments on commit a788915

Please sign in to comment.