{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/1425","repository_url":"https://api.github.com/repos/pytest-dev/pytest","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1425/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1425/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1425/events","html_url":"https://github.com/pytest-dev/pytest/issues/1425","id":137750308,"node_id":"MDU6SXNzdWUxMzc3NTAzMDg=","number":1425,"title":"Add a `get_marker` method to metafunc","user":{"login":"birdsarah","id":1796208,"node_id":"MDQ6VXNlcjE3OTYyMDg=","avatar_url":"https://avatars2.githubusercontent.com/u/1796208?v=4","gravatar_id":"","url":"https://api.github.com/users/birdsarah","html_url":"https://github.com/birdsarah","followers_url":"https://api.github.com/users/birdsarah/followers","following_url":"https://api.github.com/users/birdsarah/following{/other_user}","gists_url":"https://api.github.com/users/birdsarah/gists{/gist_id}","starred_url":"https://api.github.com/users/birdsarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdsarah/subscriptions","organizations_url":"https://api.github.com/users/birdsarah/orgs","repos_url":"https://api.github.com/users/birdsarah/repos","events_url":"https://api.github.com/users/birdsarah/events{/privacy}","received_events_url":"https://api.github.com/users/birdsarah/received_events","type":"User","site_admin":false},"labels":[{"id":604254876,"node_id":"MDU6TGFiZWw2MDQyNTQ4NzY=","url":"https://api.github.com/repos/pytest-dev/pytest/labels/topic:%20marks","name":"topic: marks","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-03-02T02:14:03Z","updated_at":"2018-11-15T22:42:55Z","closed_at":"2017-06-23T16:35:02Z","author_association":"NONE","body":"I would like to use a marker to specify if I want a test parametrized. At the moment, I have to do the following:\n\n``` python\ndef pytest_generate_tests(metafunc):\n    if hasattr(metafunc.function, \"cross_browser\"):\n         metafunc.parametrize('the fixture', params_list)\n```\n\nI was expecting an interface like item: `item.get_marker('cross_browser')` and it took me a while to hunt down this solution.\n\nIt 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?\n"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/439217208","html_url":"https://github.com/pytest-dev/pytest/issues/1425#issuecomment-439217208","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1425","id":439217208,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTIxNzIwOA==","user":{"login":"ThomasWaldmann","id":356103,"node_id":"MDQ6VXNlcjM1NjEwMw==","avatar_url":"https://avatars0.githubusercontent.com/u/356103?v=4","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T22:42:55Z","updated_at":"2018-11-15T22:42:55Z","author_association":"NONE","body":"@RonnyPfannschmidt thanks!\r\n\r\nIs `node` a undocumented feature? https://docs.pytest.org/en/latest/reference.html#metafunc"}}
{"actor":{"display_login":"ThomasWaldmann"}}