Skip to content

Commit b6869c1

Browse files
committed
test_help robust to changes in argparse output
1 parent b95e82d commit b6869c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_args.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ def test_help(capsys):
1818
stagpy.args.parse_args(['-h'])
1919
output = capsys.readouterr()
2020
expected = re.compile(
21-
r'^usage:.*\nStagPy is a tool to.*'
22-
r'\npositional arguments.*\noptional arguments.*$',
21+
r'^usage:.*\nStagPy is a tool to.*\n'
22+
r'.*field.*Plot scalar and vector fields\n'
23+
r'.*--help.*show this help message and exit.*$',
2324
flags=re.DOTALL)
2425
assert expected.fullmatch(output.out)
2526

0 commit comments

Comments
 (0)