-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix comparison on _message_published without data specified (#28)
* Fix comparison on _message_published without data specified In HedwigPublishMock._message_published(), (data is None or msg.data) == data should be (data is None or msg.data == data) Instead, simplify the comparison by using as the default for data a dict subclass that compares equal to any dict. Add a unit test for the plugin that exercises the case of omitting the optional data argument. * Replace .format() with f-string ...after noting that the code doesn't use .format() elsewhere and is targeted only at 3.6+.
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 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