Skip to content

Commit b42f6e0

Browse files
committed
fix: show output on failed assert
1 parent 8714ff8 commit b42f6e0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bec_ipython_client/tests/client_tests/test_bec_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ def test_bec_entry_point_globals_and_post_startup(tmpdir): # , capfd):
5858
# all_completions('bec.') should return a list of strings, one of which is 'bec.device_manager'
5959
# we can therefore limit the output to lines that start with '[' and end with ']'
6060
output_lines = [out for out in output.split("\n") if out.startswith("[") and out.endswith("]")]
61-
assert "bec.device_manager" in output_lines[0]
61+
assert "bec.device_manager" in output_lines[0], output
6262
assert (
6363
"BECIPythonClient" not in output_lines[1]
64-
) # just to ensure something we don't want is really not there
65-
assert "test_gui_id" in output
64+
), output # just to ensure something we don't want is really not there
65+
assert "test_gui_id" in output, output
6666

6767

6868
def test_bec_load_hli_tab_completion(tmpdir):

0 commit comments

Comments
 (0)