-
Notifications
You must be signed in to change notification settings - Fork 115
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
Fixing the missing markers as independent properties #13599
Conversation
@@ -119,12 +119,15 @@ def pytest_collection_modifyitems(items, config): | |||
markers_prop_data = [] | |||
exclude_markers = ['parametrize', 'skipif', 'usefixtures', 'skip_if_not_set'] | |||
for marker in item.iter_markers(): | |||
prop = marker.name | |||
if prop in exclude_markers: | |||
proprty = marker.name |
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.
typo here.
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.
Its deliberately done as property
is a reserved keyword in python :)
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.
Variable could be of any name though, including typing mistakes !
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.
PEP8
suggests to append a trailing underscore rather than introducing a spelling error in such cases
https://peps.python.org/pep-0008/#descriptive-naming-styles
...
single_trailing_underscore_: used by convention to avoid conflicts with Python keyword
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.
OOPs! Its merged !
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.
ACK, pending minor typo
(cherry picked from commit ae99d0d)
(cherry picked from commit ae99d0d)
(cherry picked from commit ae99d0d)
(cherry picked from commit ae99d0d)
Problem Statement
In PR #13043, Missed adding filtered markers as independent test properties impacting reporting tools like RP in reporting/filtering abilities.
Solution
This PR corrects that by adding only filtered markers as test properties.
Related Issues
No.