Skip to content

Commit 5cc5bcc

Browse files
committed
Made a test more clear.
1 parent 2c52d49 commit 5cc5bcc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_cmd2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,8 @@ def test_async_alert_rich(base_app: cmd2.Cmd) -> None:
13441344

13451345
# Verify that print_formatted_text was called with a formatted ANSI object
13461346
assert mock_print.called
1347-
printed_arg = mock_print.call_args[0][0]
1347+
args, _kwargs = mock_print.call_args
1348+
printed_arg = args[0]
13481349
assert isinstance(printed_arg, ANSI)
13491350

13501351
# The printed text should contain our table values

0 commit comments

Comments
 (0)