-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Ensure user_properties is a list #4041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/_pytest/reports.py
Outdated
|
|
||
| #: user properties is a list of tuples (name, value) that holds user | ||
| #: defined properties of the test | ||
| if user_properties is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can make this more succinct:
user_properties = [] if user_properties is None else list(user_properties)
nicoddemus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Zac-HD, good work! 👍
|
Happy to help! I use pytest all the time, so it's nice to give some code back too 😄 |
Codecov Report
@@ Coverage Diff @@
## master #4041 +/- ##
==========================================
- Coverage 94.45% 94.33% -0.13%
==========================================
Files 109 109
Lines 23788 23792 +4
Branches 2357 2359 +2
==========================================
- Hits 22470 22445 -25
- Misses 1006 1029 +23
- Partials 312 318 +6
Continue to review full report at Codecov.
|
|
@nicoddemus - are these coverage tools ever useful? Because the diff clearly doesn't change coverage at all, but one tool has it going up and the other going down! |
We are still evaluating them... can't really answer that at the moment. 🤔 |
|
Fair enough! My thoughts:
|
|
@nicoddemus - Appveyor failure looks like a job failed to upload coverage data, not failing tests 😌 |
|
Yeah unfortunately this happens somewhat frequently. 😞 |
Definitely, agree with all your points. If |
Closes #4034.