This commit is contained in:
@@ -58,6 +58,9 @@ def test_ignore_log_msg_filter(capfd, level, msg, should_appear):
|
||||
# Capture the output
|
||||
out = capfd.readouterr().out + capfd.readouterr().err
|
||||
|
||||
print(">>> Captured output:")
|
||||
print(repr(out)) # Use repr to see special characters and emptiness
|
||||
|
||||
# Check if the message appears
|
||||
if should_appear:
|
||||
assert msg in out, f"Expected '{msg}' to appear in logs"
|
||||
|
||||
Reference in New Issue
Block a user