You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When refactoring the variable names I must've broken the level= logic, such that the following test (which I've added to test_log2d.py) doesn't work but should!:
def test_find_by_level():
create_dummy_log()
mylog.logger.error(f"Message: Yet another last line")
result = mylog.find(text="error")
assert "ERROR" in result[0], f"FIND5: ERROR message not found"
result = mylog.find(text="error", ignorecase=False)
assert not result
result = mylog.find(level="error")
assert len(result) == 6, f"FIND6: Expected 6 records, found {len(result)}"
cleanup()
I'm hoping you can spot where I've gone wrong and put it right using PEP8/snake_case variable names please?
I owe you!
The text was updated successfully, but these errors were encountered:
I think this is my fault - many apologies Mike!
When refactoring the variable names I must've broken the level= logic, such that the following test (which I've added to test_log2d.py) doesn't work but should!:
This test is also failing for the same reason:
I'm hoping you can spot where I've gone wrong and put it right using PEP8/snake_case variable names please?
I owe you!
The text was updated successfully, but these errors were encountered: