-
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
Fix pytest deprecation warning #14205
Fix pytest deprecation warning #14205
Conversation
Applying a mark to a fixture function never had any effect but is a common user error. see: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
14a5ab9
to
8898d4f
Compare
@dosas Thanks for raising the PR. Since its a warning now and errors in future versions, we will have to address this sooner. The appropriate solution I feel here is to use those markers directly on tests/test_classes/test_modules. We shall get back to on this soon!! |
Maybe there should be another PR putting those marks to the appropriate location but this one is good as it is, removing something that has no effect. |
@lhellebr Even I dont see any changes needed from PR diff that holds this PR from merging. But still need to assess once with non-diff code if the removals has any indirect impact! I shall have that checked by EOD today! |
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.
Confirming that removing the markers custom
or inbuilt
does not have any impact as they were not really being used by tests or any inhouse pytest plugins.
@dosas Did you try to cover all such occurrences throughout robottelo fixtures? or would you like us to be completing the effort ?
I ran
Without any errors, so all occurrences should be covered |
Fix pytest deprecation warning: Applying a mark to a fixture function never had any effect but is a common user error. see: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function (cherry picked from commit 215ddea)
Fix pytest deprecation warning: Applying a mark to a fixture function never had any effect but is a common user error. see: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function (cherry picked from commit 215ddea)
Fix pytest deprecation warning: Applying a mark to a fixture function never had any effect but is a common user error. see: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function (cherry picked from commit 215ddea)
Fix pytest deprecation warning (#14205) Fix pytest deprecation warning: Applying a mark to a fixture function never had any effect but is a common user error. see: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function (cherry picked from commit 215ddea) Co-authored-by: dosas <[email protected]>
Fix pytest deprecation warning (#14205) Fix pytest deprecation warning: Applying a mark to a fixture function never had any effect but is a common user error. see: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function (cherry picked from commit 215ddea) Co-authored-by: dosas <[email protected]>
Fix pytest deprecation warning (#14205) Fix pytest deprecation warning: Applying a mark to a fixture function never had any effect but is a common user error. see: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function (cherry picked from commit 215ddea) Co-authored-by: dosas <[email protected]>
Fix pytest deprecation warning: Applying a mark to a fixture function never had any effect but is a common user error. see: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
Applying a mark to a fixture function never had any effect but is a common user error.
see: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function