Fix conflict with other Pytest plugins#297
Merged
justinmayer merged 2 commits intoTeemu:mainfrom Aug 23, 2025
Merged
Conversation
auvipy
requested changes
Aug 20, 2025
Collaborator
auvipy
left a comment
There was a problem hiding this comment.
can you also add some unit tests for this?
ef6ec4a to
a32c6cd
Compare
justinmayer
reviewed
Aug 23, 2025
Collaborator
justinmayer
left a comment
There was a problem hiding this comment.
Thank you for the submission, Daniil. It seems like the tests are failing on the current branch, so could you please take a look and see what needs to be changed? Also, I made a minor suggested modification to the change-log entry in the release file.
RELEASE.md
Outdated
| @@ -0,0 +1,3 @@ | |||
| Release type: patch | |||
|
|
|||
| Signature of SugarTerminalReporter to avoid conflicts with other pytest plugins | |||
Collaborator
There was a problem hiding this comment.
I think a verb is missing here. Perhaps something like the following instead?
Adjust signature of SugarTerminalReporter to avoid conflicts with other pytest plugins
added 2 commits
August 23, 2025 14:12
…s base TerminalReporter
92d96b2 to
43657f9
Compare
justinmayer
approved these changes
Aug 23, 2025
Collaborator
justinmayer
left a comment
There was a problem hiding this comment.
Thanks again for the fix, Daniil. Much appreciated! 🌟
Contributor
Author
I do really like pytest-sugar and glad to be helpful 🤝 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Using pytest-sugar with another 3rd-party pytest plugins can cause conflicts
As for example when using pytest-sugar with pytest-durations as
pytest --pytest-resultlog=duration.log .leads to such error after pytest executionThe main reason is that
SugarTerminalReporter.__init__differs from it's base class and it breaks further usageThis PR fixes this kind of issue