Skip to content
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

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

jyejare
Copy link
Member

@jyejare jyejare commented Jan 4, 2024

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.

@jyejare jyejare added CherryPick PR needs CherryPick to previous branches 6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 labels Jan 4, 2024
@jyejare jyejare requested a review from a team as a code owner January 4, 2024 14:29
@@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo here.

Copy link
Member Author

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 :)

Copy link
Member Author

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 !

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OOPs! Its merged !

Copy link

@omkarkhatavkar omkarkhatavkar left a 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

@omkarkhatavkar omkarkhatavkar merged commit ae99d0d into SatelliteQE:master Jan 4, 2024
10 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 4, 2024
github-actions bot pushed a commit that referenced this pull request Jan 4, 2024
github-actions bot pushed a commit that referenced this pull request Jan 4, 2024
github-actions bot pushed a commit that referenced this pull request Jan 4, 2024
jyejare added a commit that referenced this pull request Jan 5, 2024
Fixing the missing markers as independent properties (#13599)

(cherry picked from commit ae99d0d)

Co-authored-by: Jitendra Yejare <jyejare@redhat.com>
jyejare added a commit that referenced this pull request Jan 5, 2024
Fixing the missing markers as independent properties (#13599)

(cherry picked from commit ae99d0d)

Co-authored-by: Jitendra Yejare <jyejare@redhat.com>
jyejare added a commit that referenced this pull request Jan 5, 2024
Fixing the missing markers as independent properties (#13599)

(cherry picked from commit ae99d0d)

Co-authored-by: Jitendra Yejare <jyejare@redhat.com>
jyejare added a commit that referenced this pull request Jan 5, 2024
Fixing the missing markers as independent properties (#13599)

(cherry picked from commit ae99d0d)

Co-authored-by: Jitendra Yejare <jyejare@redhat.com>
shweta83 pushed a commit to shweta83/robottelo that referenced this pull request Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants