-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
request.node.get_marker('name')
returns None
for markers applied in classes
#902
Comments
I could reproduce the problem in It seems related to markers applied to classes (I updated the title to match this). |
request.node.get_marker('name')
returns None
regardless of applied markerrequest.node.get_marker('name')
returns None
for markers applied in classes
@nicoddemus , thank you. Do I get notified if it's fixed? |
Yes, you're watching this thread because you submitted this issue. 😄 Thanks again. |
this issue is related to marker transfers i believe the most correct fix would be implementing #891 however it comes with compatibility issues |
Removing the milestone here, as this shouldn't block 3.0 and we have #1670 (where I set the milestone to 4.0 for now) to track all marker staining related issues. |
this one can be solved after #2522 |
fixed in #3317 |
I don't know why, but I can't get the marker from my fixture. The
request.node.get_marker()
seems to returnNone
regardless of the marker applied to class:I even registered the marker in my
pytest.ini
file:Is this a bug or I'm missing something? Not to mention, I'm using
2.7.2
version.Update 1:
If I get rid of the class and apply the marker to a function, it'll work:
Update 2:
This actually works:
The text was updated successfully, but these errors were encountered: