Skip to content

Commit a3feab2

Browse files
committed
refactor: make test more flexible
running the test on minimized environments (docker images) prints additional lines which fails the test. Given me only want to ensure that formatting and content are correct we can use `in` instead of extact match
1 parent 7cc8669 commit a3feab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_misc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,9 +1171,9 @@ def test_cli_multiline_help(node_factory):
11711171
'--lightning-dir={}'
11721172
.format(l1.daemon.lightning_dir),
11731173
'help', 'helpme']).decode('utf-8')
1174-
assert out == ("helpme msat \n"
1175-
" This is a message which consumes multiple lines and thus should\n"
1176-
" be well-formatted by lightning-cli help\n")
1174+
assert ("helpme msat \n"
1175+
" This is a message which consumes multiple lines and thus should\n"
1176+
" be well-formatted by lightning-cli help\n" in out)
11771177

11781178

11791179
def test_cli_commando(node_factory):

0 commit comments

Comments
 (0)