We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way to get the list of markers assigned to an item? I know that is possible to check it by marker name, like:
def pytest_runtest_setup(item): g = item.get_marker("foo")
in this case I have to know the name "foo", but what if I want to get the list of all the markers of the item? Thanks
The text was updated successfully, but these errors were encountered:
all non-boolean elements in item.keywords
item.keywords
Sorry, something went wrong.
right, it works with something like:
def pytest_runtest_setup(item): for i in list(item.keywords): if not item.keywords[i] in [True, False]: print i
Thanks
filterwarnings
No branches or pull requests
Is there a way to get the list of markers assigned to an item?
I know that is possible to check it by marker name, like:
in this case I have to know the name "foo",
but what if I want to get the list of all the markers of the item?
Thanks
The text was updated successfully, but these errors were encountered: