test: update tests for new --version handling

This commit is contained in:
Matthias
2025-01-24 19:39:34 +01:00
parent 120194ff1e
commit d843216343
2 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -82,8 +82,8 @@ def test_common_scripts_options() -> None:
def test_parse_args_version() -> None:
with pytest.raises(SystemExit, match=r"0"):
Arguments(["--version"]).get_parsed_arg()
args = Arguments(["--version"]).get_parsed_arg()
assert args["version_main"] is True
def test_parse_args_invalid() -> None: