Skip to content

Commit d31160c

Browse files
committed
test(curl): add case testing --help all
#560 (comment)
1 parent e88a216 commit d31160c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/t/test_curl.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,15 @@ def test_data_atfile_dir(self, completion):
3131
def test_unknown_option(self, completion):
3232
# Just see that it does not error out
3333
pass
34+
35+
@pytest.mark.complete("curl --data-bina", require_cmd=True)
36+
def test_help_all_option(self, completion):
37+
"""
38+
The option used as a canary here is one that should be available
39+
in all curl versions. It should be only listed in `--help all` output
40+
for curl versions that have their help output split to multiple
41+
categories (i.e. ones that support `--help all` to get the complete
42+
list), as well as the basic `--help` output for earlier versions that
43+
do not have that.
44+
"""
45+
assert completion

0 commit comments

Comments
 (0)