{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/1682","repository_url":"https://api.github.com/repos/pytest-dev/pytest","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1682/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1682/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1682/events","html_url":"https://github.com/pytest-dev/pytest/issues/1682","id":162492156,"number":1682,"title":"Use a callable to define fixture scoped dynamically","user":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/proposal","name":"proposal","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"assignees":[{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/pytest-dev/pytest/milestones/2","html_url":"https://github.com/pytest-dev/pytest/milestones/3.0","labels_url":"https://api.github.com/repos/pytest-dev/pytest/milestones/2/labels","id":1226110,"number":2,"title":"3.0","description":"","creator":{"login":"RonnyPfannschmidt","id":156838,"avatar_url":"https://avatars.githubusercontent.com/u/156838?v=3","gravatar_id":"","url":"https://api.github.com/users/RonnyPfannschmidt","html_url":"https://github.com/RonnyPfannschmidt","followers_url":"https://api.github.com/users/RonnyPfannschmidt/followers","following_url":"https://api.github.com/users/RonnyPfannschmidt/following{/other_user}","gists_url":"https://api.github.com/users/RonnyPfannschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RonnyPfannschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonnyPfannschmidt/subscriptions","organizations_url":"https://api.github.com/users/RonnyPfannschmidt/orgs","repos_url":"https://api.github.com/users/RonnyPfannschmidt/repos","events_url":"https://api.github.com/users/RonnyPfannschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RonnyPfannschmidt/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":15,"state":"open","created_at":"2015-07-26T11:22:12Z","updated_at":"2016-06-27T17:07:05Z","due_on":"2016-07-13T22:00:00Z","closed_at":null},"comments":4,"created_at":"2016-06-27T16:21:57Z","updated_at":"2016-06-27T18:51:54Z","closed_at":null,"body":"Allow `scope` parameter of fixtures to receive a callable instead of a string. When a callable, it will be called with the `config` object (passed as keyword argument) and should return a string, which will determine the scope of the fixture. This function will evaluate only once.\r\n\r\nThe idea is that developers might be interested to have different scopes for a fixture depending on a command line option, so that one might choose to change a fixture scope to `session` to avoid costly initialization during development, but opt to change it to `function` in a C.I. server.\r\n\r\nSuggested by @hpk42 "},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/228839761","html_url":"https://github.com/pytest-dev/pytest/issues/1682#issuecomment-228839761","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1682","id":228839761,"user":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T18:51:54Z","updated_at":"2016-06-27T18:51:54Z","body":"But don't let that stop you from making a suggestion :smile:\r\n\r\n"}}
{"actor":{"display_login":"nicoddemus"}}