We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6985c8d commit b2b96b3Copy full SHA for b2b96b3
1 file changed
tests/test_common.py
@@ -5,4 +5,11 @@
5
def test_list_commands():
6
runner = CliRunner()
7
result = runner.invoke(cli, [])
8
+
9
+ # Since click 8.2, the exit code is 2, when usage is invoked without
10
+ # -h/--help. Since we support older releases as well, it can be one of two.
11
+ assert result.exit_code in (0, 2)
12
13
+ # This can be avoided by asking for help
14
+ result = runner.invoke(cli, ['--help'])
15
assert result.exit_code == 0
0 commit comments