{"action":"created","comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments/70940269","id":70940269,"diff_hunk":"@@ -0,0 +1,61 @@\n+.. _invocation_scoped_fixture:\n+\n+Invocation-scoped fixtures\n+==========================\n+\n+.. versionadded:: 3.0\n+\n+.. note::\n+    This feature is experimental, so if decided that it brings too much problems\n+    or considered too complicated it might be removed in pytest ``3.1``.\n+\n+    ``tmpdir`` and ``monkeypatch`` might become ``invocation`` scoped","path":"doc/en/invocation-fixture.rst","position":12,"original_position":12,"commit_id":"0dd1c8bf14d25521d7a0af1bb637fa0699dca57f","original_commit_id":"0dd1c8bf14d25521d7a0af1bb637fa0699dca57f","user":{"login":"hpk42","id":73579,"avatar_url":"https://avatars.githubusercontent.com/u/73579?v=3","gravatar_id":"","url":"https://api.github.com/users/hpk42","html_url":"https://github.com/hpk42","followers_url":"https://api.github.com/users/hpk42/followers","following_url":"https://api.github.com/users/hpk42/following{/other_user}","gists_url":"https://api.github.com/users/hpk42/gists{/gist_id}","starred_url":"https://api.github.com/users/hpk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpk42/subscriptions","organizations_url":"https://api.github.com/users/hpk42/orgs","repos_url":"https://api.github.com/users/hpk42/repos","events_url":"https://api.github.com/users/hpk42/events{/privacy}","received_events_url":"https://api.github.com/users/hpk42/received_events","type":"User","site_admin":false},"body":"i suggest to already make monkeypatch  an invocation scoped fixture.  Maybe even tmpdir?   This way we are going to hear very quickly if there are problems :) ","created_at":"2016-07-15T08:47:52Z","updated_at":"2016-07-15T08:47:52Z","html_url":"https://github.com/pytest-dev/pytest/pull/1711#discussion_r70940269","pull_request_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1711","_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments/70940269"},"html":{"href":"https://github.com/pytest-dev/pytest/pull/1711#discussion_r70940269"},"pull_request":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1711"}}},"pull_request":{"url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1711","id":76855797,"html_url":"https://github.com/pytest-dev/pytest/pull/1711","diff_url":"https://github.com/pytest-dev/pytest/pull/1711.diff","patch_url":"https://github.com/pytest-dev/pytest/pull/1711.patch","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1711","number":1711,"state":"open","locked":false,"title":"Invocation scoped fixtures","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},"body":"Implementation for invocation-scoped fixtures as we discussed during the sprint. There are some things still missing on the PR, but I would like to get feedback from what's implemented so far.\r\n\r\n@hpk42 I would appreciate your feedback, as I'm sure you are the most knowledgeable person on the fixture machinery. :grin:  \r\n\r\nTODO:\r\n\r\n- [ ] Add some more isolated tests\r\n- [x] Update `CHANGELOG`\r\n- [x] Some code cleanups, noted below\r\n\r\n","created_at":"2016-07-09T20:04:19Z","updated_at":"2016-07-15T08:47:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23d63b2b0866f1b0e3d58a76b8fdcad74128d712","assignee":null,"assignees":[],"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":22,"state":"open","created_at":"2015-07-26T11:22:12Z","updated_at":"2016-07-14T23:44:31Z","due_on":"2016-07-13T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1711/commits","review_comments_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/1711/comments","review_comment_url":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1711/comments","statuses_url":"https://api.github.com/repos/pytest-dev/pytest/statuses/0dd1c8bf14d25521d7a0af1bb637fa0699dca57f","head":{"label":"nicoddemus:invocation-scoped-fixtures","ref":"invocation-scoped-fixtures","sha":"0dd1c8bf14d25521d7a0af1bb637fa0699dca57f","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},"repo":{"id":37492961,"name":"pytest","full_name":"nicoddemus/pytest","owner":{"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},"private":false,"html_url":"https://github.com/nicoddemus/pytest","description":"The pytest testing tool makes it easy to write small tests, yet scales to support complex functional testing","fork":true,"url":"https://api.github.com/repos/nicoddemus/pytest","forks_url":"https://api.github.com/repos/nicoddemus/pytest/forks","keys_url":"https://api.github.com/repos/nicoddemus/pytest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicoddemus/pytest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicoddemus/pytest/teams","hooks_url":"https://api.github.com/repos/nicoddemus/pytest/hooks","issue_events_url":"https://api.github.com/repos/nicoddemus/pytest/issues/events{/number}","events_url":"https://api.github.com/repos/nicoddemus/pytest/events","assignees_url":"https://api.github.com/repos/nicoddemus/pytest/assignees{/user}","branches_url":"https://api.github.com/repos/nicoddemus/pytest/branches{/branch}","tags_url":"https://api.github.com/repos/nicoddemus/pytest/tags","blobs_url":"https://api.github.com/repos/nicoddemus/pytest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicoddemus/pytest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicoddemus/pytest/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicoddemus/pytest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicoddemus/pytest/statuses/{sha}","languages_url":"https://api.github.com/repos/nicoddemus/pytest/languages","stargazers_url":"https://api.github.com/repos/nicoddemus/pytest/stargazers","contributors_url":"https://api.github.com/repos/nicoddemus/pytest/contributors","subscribers_url":"https://api.github.com/repos/nicoddemus/pytest/subscribers","subscription_url":"https://api.github.com/repos/nicoddemus/pytest/subscription","commits_url":"https://api.github.com/repos/nicoddemus/pytest/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicoddemus/pytest/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicoddemus/pytest/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicoddemus/pytest/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicoddemus/pytest/contents/{+path}","compare_url":"https://api.github.com/repos/nicoddemus/pytest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicoddemus/pytest/merges","archive_url":"https://api.github.com/repos/nicoddemus/pytest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicoddemus/pytest/downloads","issues_url":"https://api.github.com/repos/nicoddemus/pytest/issues{/number}","pulls_url":"https://api.github.com/repos/nicoddemus/pytest/pulls{/number}","milestones_url":"https://api.github.com/repos/nicoddemus/pytest/milestones{/number}","notifications_url":"https://api.github.com/repos/nicoddemus/pytest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicoddemus/pytest/labels{/name}","releases_url":"https://api.github.com/repos/nicoddemus/pytest/releases{/id}","deployments_url":"https://api.github.com/repos/nicoddemus/pytest/deployments","created_at":"2015-06-15T21:42:39Z","updated_at":"2016-02-18T20:29:23Z","pushed_at":"2016-07-15T02:42:07Z","git_url":"git://github.com/nicoddemus/pytest.git","ssh_url":"git@github.com:nicoddemus/pytest.git","clone_url":"https://github.com/nicoddemus/pytest.git","svn_url":"https://github.com/nicoddemus/pytest","homepage":"http://pytest.org/","size":8398,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pytest-dev:features","ref":"features","sha":"6f68dfcc47d29dd6750b731fdeb45a1882057739","user":{"login":"pytest-dev","id":8897583,"avatar_url":"https://avatars.githubusercontent.com/u/8897583?v=3","gravatar_id":"","url":"https://api.github.com/users/pytest-dev","html_url":"https://github.com/pytest-dev","followers_url":"https://api.github.com/users/pytest-dev/followers","following_url":"https://api.github.com/users/pytest-dev/following{/other_user}","gists_url":"https://api.github.com/users/pytest-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pytest-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytest-dev/subscriptions","organizations_url":"https://api.github.com/users/pytest-dev/orgs","repos_url":"https://api.github.com/users/pytest-dev/repos","events_url":"https://api.github.com/users/pytest-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pytest-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":37489525,"name":"pytest","full_name":"pytest-dev/pytest","owner":{"login":"pytest-dev","id":8897583,"avatar_url":"https://avatars.githubusercontent.com/u/8897583?v=3","gravatar_id":"","url":"https://api.github.com/users/pytest-dev","html_url":"https://github.com/pytest-dev","followers_url":"https://api.github.com/users/pytest-dev/followers","following_url":"https://api.github.com/users/pytest-dev/following{/other_user}","gists_url":"https://api.github.com/users/pytest-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pytest-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytest-dev/subscriptions","organizations_url":"https://api.github.com/users/pytest-dev/orgs","repos_url":"https://api.github.com/users/pytest-dev/repos","events_url":"https://api.github.com/users/pytest-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pytest-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pytest-dev/pytest","description":"The pytest framework makes it easy to write small tests, yet scales to support complex functional testing","fork":false,"url":"https://api.github.com/repos/pytest-dev/pytest","forks_url":"https://api.github.com/repos/pytest-dev/pytest/forks","keys_url":"https://api.github.com/repos/pytest-dev/pytest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pytest-dev/pytest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pytest-dev/pytest/teams","hooks_url":"https://api.github.com/repos/pytest-dev/pytest/hooks","issue_events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/events{/number}","events_url":"https://api.github.com/repos/pytest-dev/pytest/events","assignees_url":"https://api.github.com/repos/pytest-dev/pytest/assignees{/user}","branches_url":"https://api.github.com/repos/pytest-dev/pytest/branches{/branch}","tags_url":"https://api.github.com/repos/pytest-dev/pytest/tags","blobs_url":"https://api.github.com/repos/pytest-dev/pytest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pytest-dev/pytest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pytest-dev/pytest/git/refs{/sha}","trees_url":"https://api.github.com/repos/pytest-dev/pytest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pytest-dev/pytest/statuses/{sha}","languages_url":"https://api.github.com/repos/pytest-dev/pytest/languages","stargazers_url":"https://api.github.com/repos/pytest-dev/pytest/stargazers","contributors_url":"https://api.github.com/repos/pytest-dev/pytest/contributors","subscribers_url":"https://api.github.com/repos/pytest-dev/pytest/subscribers","subscription_url":"https://api.github.com/repos/pytest-dev/pytest/subscription","commits_url":"https://api.github.com/repos/pytest-dev/pytest/commits{/sha}","git_commits_url":"https://api.github.com/repos/pytest-dev/pytest/git/commits{/sha}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/comments{/number}","issue_comment_url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments{/number}","contents_url":"https://api.github.com/repos/pytest-dev/pytest/contents/{+path}","compare_url":"https://api.github.com/repos/pytest-dev/pytest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pytest-dev/pytest/merges","archive_url":"https://api.github.com/repos/pytest-dev/pytest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pytest-dev/pytest/downloads","issues_url":"https://api.github.com/repos/pytest-dev/pytest/issues{/number}","pulls_url":"https://api.github.com/repos/pytest-dev/pytest/pulls{/number}","milestones_url":"https://api.github.com/repos/pytest-dev/pytest/milestones{/number}","notifications_url":"https://api.github.com/repos/pytest-dev/pytest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pytest-dev/pytest/labels{/name}","releases_url":"https://api.github.com/repos/pytest-dev/pytest/releases{/id}","deployments_url":"https://api.github.com/repos/pytest-dev/pytest/deployments","created_at":"2015-06-15T20:28:27Z","updated_at":"2016-07-14T05:50:26Z","pushed_at":"2016-07-15T02:43:06Z","git_url":"git://github.com/pytest-dev/pytest.git","ssh_url":"git@github.com:pytest-dev/pytest.git","clone_url":"https://github.com/pytest-dev/pytest.git","svn_url":"https://github.com/pytest-dev/pytest","homepage":"http://pytest.org/","size":10423,"stargazers_count":783,"watchers_count":783,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":206,"mirror_url":null,"open_issues_count":320,"forks":206,"open_issues":320,"watchers":783,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1711"},"html":{"href":"https://github.com/pytest-dev/pytest/pull/1711"},"issue":{"href":"https://api.github.com/repos/pytest-dev/pytest/issues/1711"},"comments":{"href":"https://api.github.com/repos/pytest-dev/pytest/issues/1711/comments"},"review_comments":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1711/comments"},"review_comment":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytest-dev/pytest/pulls/1711/commits"},"statuses":{"href":"https://api.github.com/repos/pytest-dev/pytest/statuses/0dd1c8bf14d25521d7a0af1bb637fa0699dca57f"}}}}
{"actor":{"display_login":"hpk42"}}