Skip to content

Commit

Permalink
Improve logging in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWells-diamond committed Mar 30, 2023
1 parent 654a71d commit 9c6495e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"SOME-PREFIX"
],
"console": "integratedTerminal",
"justMyCode": true
"justMyCode": false
},
{
"name": "Introspect Panda",
Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def ctx() -> Generator[None, None, None]:
# Make mypy happy
assert (
log_record.args
), f"args were none, how did that happen? {log_record} {log_record.args}"
), f"args were none, how did that happen?\nRecord: {log_record}\n"
f"Args: {log_record.args}"
logger._log(
level=log_record.levelno,
msg=log_record.message,
Expand Down

0 comments on commit 9c6495e

Please sign in to comment.