Upgrade click

Since `click` v8.2, a `Group` invoked without a subcommand
exits with status code 2 ("usage error") instead of 0.
This commit is contained in:
Alexander Hess 2026-11-25 12:35:01 +01:00
commit c310c335ff
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -65,10 +65,10 @@ class TestCLIWithoutCommand:
@pytest.mark.no_cover
def test_no_options(self, cli):
"""Exit with 0 status code and no output if run without options."""
"""Exit with 2 status code (usage error) if run without options."""
result = cli.invoke(main.entry_point)
assert result.exit_code == 0
assert result.exit_code == 2
# The following test cases validate the --version / -V option.