Fix assertion for changed label for optional arguments.
This commit is contained in:
parent
afd41da6ef
commit
a1b87c36f5
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ def test_cli_no_args_shows_usage(capfd):
|
||||||
cli.cli(w("pricehist"))
|
cli.cli(w("pricehist"))
|
||||||
out, err = capfd.readouterr()
|
out, err = capfd.readouterr()
|
||||||
assert "usage: pricehist" in out
|
assert "usage: pricehist" in out
|
||||||
assert "optional arguments:" in out
|
assert "optional arguments:" in out or "options:" in out
|
||||||
assert "commands:" in out
|
assert "commands:" in out
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ def test_cli_help_shows_usage_and_exits(capfd):
|
||||||
assert e.value.code == 0
|
assert e.value.code == 0
|
||||||
out, err = capfd.readouterr()
|
out, err = capfd.readouterr()
|
||||||
assert "usage: pricehist" in out
|
assert "usage: pricehist" in out
|
||||||
assert "optional arguments:" in out
|
assert "optional arguments:" in out or "options:" in out
|
||||||
assert "commands:" in out
|
assert "commands:" in out
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue