-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DbAPiHook: Don't log a warning message if placeholder is None and mak…
…e sure warning message is formatted correctly (#39690) * fix: Don't log a warning message if placeholder is None and make sure if the placeholder is invalid that the warning message is logged correctly * refactor: Also make sure to verify that log.warning isn't invoked when placeholder is valid * refactor: All assertions regarding the logging are now done through caplog * refactor: Reformatted logging assertions * refactor: Reformatted logging assertion --------- Co-authored-by: David Blain <david.blain@infrabel.be>
- Loading branch information
1 parent
a3ae17f
commit db80e5e
Showing
2 changed files
with
78 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters