{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments/63462172","id":63462172,"diff_hunk":"@@ -0,0 +1,30 @@\n+import unittest\n+from tests.utils import OpenEventTestCase\n+from flask import url_for\n+from tests.setup_database import Setup\n+from open_event import current_app as app\n+from open_event.models import db\n+from open_event.helpers.data import save_to_db, get_google_auth\n+from open_event.models.user import User\n+from open_event.helpers.oauth import OAuth","path":"tests/test_google_oauth.py","position":9,"original_position":9,"commit_id":"3b94e7243bffbaf982e188d441c76ccef4bb07a8","original_commit_id":"3b94e7243bffbaf982e188d441c76ccef4bb07a8","user":{"login":"juslee","id":1696598,"avatar_url":"https://avatars.githubusercontent.com/u/1696598?v=3","gravatar_id":"","url":"https://api.github.com/users/juslee","html_url":"https://github.com/juslee","followers_url":"https://api.github.com/users/juslee/followers","following_url":"https://api.github.com/users/juslee/following{/other_user}","gists_url":"https://api.github.com/users/juslee/gists{/gist_id}","starred_url":"https://api.github.com/users/juslee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juslee/subscriptions","organizations_url":"https://api.github.com/users/juslee/orgs","repos_url":"https://api.github.com/users/juslee/repos","events_url":"https://api.github.com/users/juslee/events{/privacy}","received_events_url":"https://api.github.com/users/juslee/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Unused OAuth imported from open_event.helpers.oauth](https://www.codacy.com/app/triplez/open-event-orga-server/file/2581110445/issues/source?bid=3233864&fileBranchId=3299682#l9)","created_at":"2016-05-17T04:11:07Z","updated_at":"2016-05-17T04:11:07Z","html_url":"https://github.com/fossasia/open-event-orga-server/pull/323#discussion_r63462172","pull_request_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/323","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments/63462172"},"html":{"href":"https://github.com/fossasia/open-event-orga-server/pull/323#discussion_r63462172"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/323"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/323","id":70171893,"html_url":"https://github.com/fossasia/open-event-orga-server/pull/323","diff_url":"https://github.com/fossasia/open-event-orga-server/pull/323.diff","patch_url":"https://github.com/fossasia/open-event-orga-server/pull/323.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/323","number":323,"state":"open","locked":false,"title":"OAuth 2.0 Login","user":{"login":"aditya1702","id":15054664,"avatar_url":"https://avatars.githubusercontent.com/u/15054664?v=3","gravatar_id":"","url":"https://api.github.com/users/aditya1702","html_url":"https://github.com/aditya1702","followers_url":"https://api.github.com/users/aditya1702/followers","following_url":"https://api.github.com/users/aditya1702/following{/other_user}","gists_url":"https://api.github.com/users/aditya1702/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya1702/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya1702/subscriptions","organizations_url":"https://api.github.com/users/aditya1702/orgs","repos_url":"https://api.github.com/users/aditya1702/repos","events_url":"https://api.github.com/users/aditya1702/events{/privacy}","received_events_url":"https://api.github.com/users/aditya1702/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-16T09:35:35Z","updated_at":"2016-05-17T04:11:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35bf72a7e036fe8870987382ca7928bad13fd647","assignee":{"login":"aditya1702","id":15054664,"avatar_url":"https://avatars.githubusercontent.com/u/15054664?v=3","gravatar_id":"","url":"https://api.github.com/users/aditya1702","html_url":"https://github.com/aditya1702","followers_url":"https://api.github.com/users/aditya1702/followers","following_url":"https://api.github.com/users/aditya1702/following{/other_user}","gists_url":"https://api.github.com/users/aditya1702/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya1702/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya1702/subscriptions","organizations_url":"https://api.github.com/users/aditya1702/orgs","repos_url":"https://api.github.com/users/aditya1702/repos","events_url":"https://api.github.com/users/aditya1702/events{/privacy}","received_events_url":"https://api.github.com/users/aditya1702/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones/8","html_url":"https://github.com/fossasia/open-event-orga-server/milestones/GSOC%202016:%20Milestone%203","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones/8/labels","id":1762353,"number":8,"title":"GSOC 2016: Milestone 3","description":"GSOC 2016 Milestone 3 - All issues to be completed by 5th June 2016.\r\n\r\nInstructions: \r\n1. Create issues to work on.\r\n2. Assign the issue to the milestone.\r\n3. Assign the issue to a user.\r\n\r\nCompleted Milestone:\r\n1. Create a blog post describing what has been done.\r\n2. Tag a release.\r\n3. Deploy on a server.","creator":{"login":"juslee","id":1696598,"avatar_url":"https://avatars.githubusercontent.com/u/1696598?v=3","gravatar_id":"","url":"https://api.github.com/users/juslee","html_url":"https://github.com/juslee","followers_url":"https://api.github.com/users/juslee/followers","following_url":"https://api.github.com/users/juslee/following{/other_user}","gists_url":"https://api.github.com/users/juslee/gists{/gist_id}","starred_url":"https://api.github.com/users/juslee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juslee/subscriptions","organizations_url":"https://api.github.com/users/juslee/orgs","repos_url":"https://api.github.com/users/juslee/repos","events_url":"https://api.github.com/users/juslee/events{/privacy}","received_events_url":"https://api.github.com/users/juslee/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2016-05-12T13:04:10Z","updated_at":"2016-05-16T18:01:01Z","due_on":"2016-06-04T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/323/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/323/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/323/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/3b94e7243bffbaf982e188d441c76ccef4bb07a8","head":{"label":"aditya1702:aditya1702-OAuth_login","ref":"aditya1702-OAuth_login","sha":"3b94e7243bffbaf982e188d441c76ccef4bb07a8","user":{"login":"aditya1702","id":15054664,"avatar_url":"https://avatars.githubusercontent.com/u/15054664?v=3","gravatar_id":"","url":"https://api.github.com/users/aditya1702","html_url":"https://github.com/aditya1702","followers_url":"https://api.github.com/users/aditya1702/followers","following_url":"https://api.github.com/users/aditya1702/following{/other_user}","gists_url":"https://api.github.com/users/aditya1702/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya1702/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya1702/subscriptions","organizations_url":"https://api.github.com/users/aditya1702/orgs","repos_url":"https://api.github.com/users/aditya1702/repos","events_url":"https://api.github.com/users/aditya1702/events{/privacy}","received_events_url":"https://api.github.com/users/aditya1702/received_events","type":"User","site_admin":false},"repo":{"id":43973068,"name":"open-event-orga-server","full_name":"aditya1702/open-event-orga-server","owner":{"login":"aditya1702","id":15054664,"avatar_url":"https://avatars.githubusercontent.com/u/15054664?v=3","gravatar_id":"","url":"https://api.github.com/users/aditya1702","html_url":"https://github.com/aditya1702","followers_url":"https://api.github.com/users/aditya1702/followers","following_url":"https://api.github.com/users/aditya1702/following{/other_user}","gists_url":"https://api.github.com/users/aditya1702/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya1702/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya1702/subscriptions","organizations_url":"https://api.github.com/users/aditya1702/orgs","repos_url":"https://api.github.com/users/aditya1702/repos","events_url":"https://api.github.com/users/aditya1702/events{/privacy}","received_events_url":"https://api.github.com/users/aditya1702/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aditya1702/open-event-orga-server","description":"Open Event Orga Server","fork":true,"url":"https://api.github.com/repos/aditya1702/open-event-orga-server","forks_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/aditya1702/open-event-orga-server/deployments","created_at":"2015-10-09T18:29:54Z","updated_at":"2016-01-12T14:17:08Z","pushed_at":"2016-05-17T04:06:58Z","git_url":"git://github.com/aditya1702/open-event-orga-server.git","ssh_url":"git@github.com:aditya1702/open-event-orga-server.git","clone_url":"https://github.com/aditya1702/open-event-orga-server.git","svn_url":"https://github.com/aditya1702/open-event-orga-server","homepage":null,"size":1434,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fossasia:master","ref":"master","sha":"960e39a25e915fc9a53b9b5f5e6dae44be3fe3c8","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35270176,"name":"open-event-orga-server","full_name":"fossasia/open-event-orga-server","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-orga-server","description":"Open Event Orga Server","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-orga-server","forks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/deployments","created_at":"2015-05-08T09:16:19Z","updated_at":"2016-05-01T19:54:23Z","pushed_at":"2016-05-17T04:06:59Z","git_url":"git://github.com/fossasia/open-event-orga-server.git","ssh_url":"git@github.com:fossasia/open-event-orga-server.git","clone_url":"https://github.com/fossasia/open-event-orga-server.git","svn_url":"https://github.com/fossasia/open-event-orga-server","homepage":null,"size":2003,"stargazers_count":17,"watchers_count":17,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":22,"forks":43,"open_issues":22,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/323"},"html":{"href":"https://github.com/fossasia/open-event-orga-server/pull/323"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/323"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/323/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/323/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/323/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/3b94e7243bffbaf982e188d441c76ccef4bb07a8"}}}}