This commit is contained in:
1 parent
c2764c824c
commit
a47da38855
1 file changed
+3
@@ -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