From a1b87c36f501cfc2f5695a694994244e2f81e8e0 Mon Sep 17 00:00:00 2001 From: Chris Berkhout Date: Fri, 12 Nov 2021 13:49:59 +0100 Subject: [PATCH] Fix assertion for changed label for optional arguments. --- tests/pricehist/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pricehist/test_cli.py b/tests/pricehist/test_cli.py index 16bd383..0c4d8ef 100644 --- a/tests/pricehist/test_cli.py +++ b/tests/pricehist/test_cli.py @@ -54,7 +54,7 @@ def test_cli_no_args_shows_usage(capfd): cli.cli(w("pricehist")) out, err = capfd.readouterr() assert "usage: pricehist" in out - assert "optional arguments:" in out + assert "optional arguments:" in out or "options:" in out assert "commands:" in out @@ -64,7 +64,7 @@ def test_cli_help_shows_usage_and_exits(capfd): assert e.value.code == 0 out, err = capfd.readouterr() assert "usage: pricehist" in out - assert "optional arguments:" in out + assert "optional arguments:" in out or "options:" in out assert "commands:" in out