{"action":"created","comment":{"url":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/comments/23164642","id":23164642,"diff_hunk":"@@ -496,12 +496,13 @@ def test_package_retire(self, login_func, mock_func):\n                 '<li class=\"errors\">No package of this name found.</li>'\n                 in output.data)\n \n-    @patch('pkgdb2.lib.utils.get_packagers')\n+    @patch('pkgdb2.lib.utils')\n     @patch('pkgdb2.packager_login_required')\n     def test_package_take(self, login_func, mock_func):\n         \"\"\" Test the package_take function. \"\"\"\n         login_func.return_value = None\n-        mock_func.return_value = ['pingou', 'toshio']\n+        mock_func.get_packagers.return_value = ['pingou', 'toshio']","path":"tests/test_flask_ui_packages.py","position":11,"original_position":11,"commit_id":"1692214e8bc6cea68c5cb1ab5ac00588fa98bb24","original_commit_id":"1692214e8bc6cea68c5cb1ab5ac00588fa98bb24","user":{"login":"pypingou","id":1240038,"avatar_url":"https://avatars.githubusercontent.com/u/1240038?v=3","gravatar_id":"","url":"https://api.github.com/users/pypingou","html_url":"https://github.com/pypingou","followers_url":"https://api.github.com/users/pypingou/followers","following_url":"https://api.github.com/users/pypingou/following{/other_user}","gists_url":"https://api.github.com/users/pypingou/gists{/gist_id}","starred_url":"https://api.github.com/users/pypingou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pypingou/subscriptions","organizations_url":"https://api.github.com/users/pypingou/orgs","repos_url":"https://api.github.com/users/pypingou/repos","events_url":"https://api.github.com/users/pypingou/events{/privacy}","received_events_url":"https://api.github.com/users/pypingou/received_events","type":"User","site_admin":false},"body":"Yes it should, in the whole file :-)","created_at":"2015-01-19T15:09:03Z","updated_at":"2015-01-19T15:09:03Z","html_url":"https://github.com/fedora-infra/pkgdb2/pull/130#discussion_r23164642","pull_request_url":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/comments/23164642"},"html":{"href":"https://github.com/fedora-infra/pkgdb2/pull/130#discussion_r23164642"},"pull_request":{"href":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/130","id":27602443,"html_url":"https://github.com/fedora-infra/pkgdb2/pull/130","diff_url":"https://github.com/fedora-infra/pkgdb2/pull/130.diff","patch_url":"https://github.com/fedora-infra/pkgdb2/pull/130.patch","issue_url":"https://api.github.com/repos/fedora-infra/pkgdb2/issues/130","number":130,"state":"open","locked":false,"title":"Turns out `@patch('pkgdb2.lib.utils.get_packagers')` does not work","user":{"login":"pypingou","id":1240038,"avatar_url":"https://avatars.githubusercontent.com/u/1240038?v=3","gravatar_id":"","url":"https://api.github.com/users/pypingou","html_url":"https://github.com/pypingou","followers_url":"https://api.github.com/users/pypingou/followers","following_url":"https://api.github.com/users/pypingou/following{/other_user}","gists_url":"https://api.github.com/users/pypingou/gists{/gist_id}","starred_url":"https://api.github.com/users/pypingou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pypingou/subscriptions","organizations_url":"https://api.github.com/users/pypingou/orgs","repos_url":"https://api.github.com/users/pypingou/repos","events_url":"https://api.github.com/users/pypingou/events{/privacy}","received_events_url":"https://api.github.com/users/pypingou/received_events","type":"User","site_admin":false},"body":"We can patch the whole module and set a return_value for one method in it\r\nbut patching the method directly doesn't work.\r\n\r\nSo we need to create some logs manually to test the timeline endpoint","created_at":"2015-01-19T12:09:32Z","updated_at":"2015-01-19T15:09:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b1690eb9d2dc8f6955f77619dd9f42b275ab2ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/130/commits","review_comments_url":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/130/comments","review_comment_url":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/comments/{number}","comments_url":"https://api.github.com/repos/fedora-infra/pkgdb2/issues/130/comments","statuses_url":"https://api.github.com/repos/fedora-infra/pkgdb2/statuses/1692214e8bc6cea68c5cb1ab5ac00588fa98bb24","head":{"label":"fedora-infra:fix_ẗests","ref":"fix_ẗests","sha":"1692214e8bc6cea68c5cb1ab5ac00588fa98bb24","user":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars.githubusercontent.com/u/3316637?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"repo":{"id":9082212,"name":"pkgdb2","full_name":"fedora-infra/pkgdb2","owner":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars.githubusercontent.com/u/3316637?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedora-infra/pkgdb2","description":"Updated version of the Package Database","fork":false,"url":"https://api.github.com/repos/fedora-infra/pkgdb2","forks_url":"https://api.github.com/repos/fedora-infra/pkgdb2/forks","keys_url":"https://api.github.com/repos/fedora-infra/pkgdb2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedora-infra/pkgdb2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedora-infra/pkgdb2/teams","hooks_url":"https://api.github.com/repos/fedora-infra/pkgdb2/hooks","issue_events_url":"https://api.github.com/repos/fedora-infra/pkgdb2/issues/events{/number}","events_url":"https://api.github.com/repos/fedora-infra/pkgdb2/events","assignees_url":"https://api.github.com/repos/fedora-infra/pkgdb2/assignees{/user}","branches_url":"https://api.github.com/repos/fedora-infra/pkgdb2/branches{/branch}","tags_url":"https://api.github.com/repos/fedora-infra/pkgdb2/tags","blobs_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedora-infra/pkgdb2/statuses/{sha}","languages_url":"https://api.github.com/repos/fedora-infra/pkgdb2/languages","stargazers_url":"https://api.github.com/repos/fedora-infra/pkgdb2/stargazers","contributors_url":"https://api.github.com/repos/fedora-infra/pkgdb2/contributors","subscribers_url":"https://api.github.com/repos/fedora-infra/pkgdb2/subscribers","subscription_url":"https://api.github.com/repos/fedora-infra/pkgdb2/subscription","commits_url":"https://api.github.com/repos/fedora-infra/pkgdb2/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedora-infra/pkgdb2/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedora-infra/pkgdb2/issues/comments/{number}","contents_url":"https://api.github.com/repos/fedora-infra/pkgdb2/contents/{+path}","compare_url":"https://api.github.com/repos/fedora-infra/pkgdb2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedora-infra/pkgdb2/merges","archive_url":"https://api.github.com/repos/fedora-infra/pkgdb2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedora-infra/pkgdb2/downloads","issues_url":"https://api.github.com/repos/fedora-infra/pkgdb2/issues{/number}","pulls_url":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls{/number}","milestones_url":"https://api.github.com/repos/fedora-infra/pkgdb2/milestones{/number}","notifications_url":"https://api.github.com/repos/fedora-infra/pkgdb2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedora-infra/pkgdb2/labels{/name}","releases_url":"https://api.github.com/repos/fedora-infra/pkgdb2/releases{/id}","created_at":"2013-03-28T17:17:21Z","updated_at":"2015-01-19T11:04:53Z","pushed_at":"2015-01-19T12:09:49Z","git_url":"git://github.com/fedora-infra/pkgdb2.git","ssh_url":"git@github.com:fedora-infra/pkgdb2.git","clone_url":"https://github.com/fedora-infra/pkgdb2.git","svn_url":"https://github.com/fedora-infra/pkgdb2","homepage":"https://admin.fedoraproject.org/pkgdb/","size":6724,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":6,"forks":12,"open_issues":6,"watchers":10,"default_branch":"master"}},"base":{"label":"fedora-infra:master","ref":"master","sha":"bc8cdcc1420dec25d7740079545c33f964e7b945","user":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars.githubusercontent.com/u/3316637?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"repo":{"id":9082212,"name":"pkgdb2","full_name":"fedora-infra/pkgdb2","owner":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars.githubusercontent.com/u/3316637?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedora-infra/pkgdb2","description":"Updated version of the Package Database","fork":false,"url":"https://api.github.com/repos/fedora-infra/pkgdb2","forks_url":"https://api.github.com/repos/fedora-infra/pkgdb2/forks","keys_url":"https://api.github.com/repos/fedora-infra/pkgdb2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedora-infra/pkgdb2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedora-infra/pkgdb2/teams","hooks_url":"https://api.github.com/repos/fedora-infra/pkgdb2/hooks","issue_events_url":"https://api.github.com/repos/fedora-infra/pkgdb2/issues/events{/number}","events_url":"https://api.github.com/repos/fedora-infra/pkgdb2/events","assignees_url":"https://api.github.com/repos/fedora-infra/pkgdb2/assignees{/user}","branches_url":"https://api.github.com/repos/fedora-infra/pkgdb2/branches{/branch}","tags_url":"https://api.github.com/repos/fedora-infra/pkgdb2/tags","blobs_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedora-infra/pkgdb2/statuses/{sha}","languages_url":"https://api.github.com/repos/fedora-infra/pkgdb2/languages","stargazers_url":"https://api.github.com/repos/fedora-infra/pkgdb2/stargazers","contributors_url":"https://api.github.com/repos/fedora-infra/pkgdb2/contributors","subscribers_url":"https://api.github.com/repos/fedora-infra/pkgdb2/subscribers","subscription_url":"https://api.github.com/repos/fedora-infra/pkgdb2/subscription","commits_url":"https://api.github.com/repos/fedora-infra/pkgdb2/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedora-infra/pkgdb2/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedora-infra/pkgdb2/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedora-infra/pkgdb2/issues/comments/{number}","contents_url":"https://api.github.com/repos/fedora-infra/pkgdb2/contents/{+path}","compare_url":"https://api.github.com/repos/fedora-infra/pkgdb2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedora-infra/pkgdb2/merges","archive_url":"https://api.github.com/repos/fedora-infra/pkgdb2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedora-infra/pkgdb2/downloads","issues_url":"https://api.github.com/repos/fedora-infra/pkgdb2/issues{/number}","pulls_url":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls{/number}","milestones_url":"https://api.github.com/repos/fedora-infra/pkgdb2/milestones{/number}","notifications_url":"https://api.github.com/repos/fedora-infra/pkgdb2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedora-infra/pkgdb2/labels{/name}","releases_url":"https://api.github.com/repos/fedora-infra/pkgdb2/releases{/id}","created_at":"2013-03-28T17:17:21Z","updated_at":"2015-01-19T11:04:53Z","pushed_at":"2015-01-19T12:09:49Z","git_url":"git://github.com/fedora-infra/pkgdb2.git","ssh_url":"git@github.com:fedora-infra/pkgdb2.git","clone_url":"https://github.com/fedora-infra/pkgdb2.git","svn_url":"https://github.com/fedora-infra/pkgdb2","homepage":"https://admin.fedoraproject.org/pkgdb/","size":6724,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":6,"forks":12,"open_issues":6,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/130"},"html":{"href":"https://github.com/fedora-infra/pkgdb2/pull/130"},"issue":{"href":"https://api.github.com/repos/fedora-infra/pkgdb2/issues/130"},"comments":{"href":"https://api.github.com/repos/fedora-infra/pkgdb2/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/fedora-infra/pkgdb2/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/fedora-infra/pkgdb2/statuses/1692214e8bc6cea68c5cb1ab5ac00588fa98bb24"}}}}