Skip to content

Commit c2278c7

Browse files
author
Jonathan Woollett-Light
committed
fix: Update logging test assertion
Updates an assert under `test_logging.py` to be more descriptive on failure. Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
1 parent 3e0ede6 commit c2278c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration_tests/functional/test_logging.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def check_log_message_format(log_str, instance_id, level, show_level, show_origi
5959
pattern += "\\].*"
6060

6161
mo = re.match(pattern, tag_and_msg)
62-
assert mo is not None
62+
assert (
63+
mo is not None
64+
), f"Log message ({tag_and_msg}) does not match pattern ({pattern})."
6365

6466
if show_level:
6567
tag_level = mo.group(3)

0 commit comments

Comments
 (0)