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
Add a get_marker
method to metafunc
#1425
Comments
indeed, a |
Btw, Imho we should Phase out metafunc in 3.x, its a artifact of unfortunate structure |
ronny, i see that as an orthogonal issue and one which i don't understand in detail. Maybe you can take it to the pytest-dev ML sometime to detail your reasoning behind the suggestion. |
Will do at the office |
closing this one as superseeded |
So, how can I access markers "the new way" from this function? I read some docs, but that is still totally unclear to me and it seems that I also miss a |
@ThomasWaldmann |
@RonnyPfannschmidt thanks! Is |
|
i'm sorry, i did miss remember, based on Line 875 in 9dec146
definition not node
|
Also undocumented, but works. I get the |
@ThomasWaldmann the plan was to introduce the FunctionDefinition node in the official collection tree since quite a while, but i failed 2 different structural attempts to integrate it already |
I would like to use a marker to specify if I want a test parametrized. At the moment, I have to do the following:
I was expecting an interface like item:
item.get_marker('cross_browser')
and it took me a while to hunt down this solution.It seems like it would be a fairly straight forward addition, and I'd be willing to try rustling up a PR. Is there a reason that this isn't a feature already or is it just a matter of someone doing it?
The text was updated successfully, but these errors were encountered: