GitHub PullRequestReviewCommentEvent at 2014-08-22 19:40:43
Repository: Python-Sample-Application
Actor: zheller
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/comments/16617273","id":16617273,"diff_hunk":"@@ -26,6 +27,24 @@ def test_root_endpoint(self):\n         response = app.test_client().get('/')\n         self.assertIn('login.uber.com', response.data)\n \n+    def test_submit_endpoint_success(self):\n+        \"\"\"Assert that the / endpoint correctly redirects to login.uber.com.\"\"\"\n+        with app.test_client() as client:\n+            with client.session_transaction() as session:\n+                session['access_token'] = test_auth_token\n+            with Betamax(app.requests_session).use_cassette('submit_success'):\n+                response = client.get('/submit?code=%s' % test_auth_code)\n+        self.assertEquals(response.status_code, 200)","path":"test/test_endpoints.py","position":19,"original_position":19,"commit_id":"dafff2a7df57a5f715afb5a0a5d9fc3ae9ec23e4","original_commit_id":"dafff2a7df57a5f715afb5a0a5d9fc3ae9ec23e4","user":{"login":"zheller","id":494555,"avatar_url":"https://avatars.githubusercontent.com/u/494555?v=2","gravatar_id":"410805b01c3f257945ef94d0b01344c7","url":"https://api.github.com/users/zheller","html_url":"https://github.com/zheller","followers_url":"https://api.github.com/users/zheller/followers","following_url":"https://api.github.com/users/zheller/following{/other_user}","gists_url":"https://api.github.com/users/zheller/gists{/gist_id}","starred_url":"https://api.github.com/users/zheller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zheller/subscriptions","organizations_url":"https://api.github.com/users/zheller/orgs","repos_url":"https://api.github.com/users/zheller/repos","events_url":"https://api.github.com/users/zheller/events{/privacy}","received_events_url":"https://api.github.com/users/zheller/received_events","type":"User","site_admin":false},"body":"we should assert something about the body","created_at":"2014-08-22T19:40:43Z","updated_at":"2014-08-22T19:40:43Z","html_url":"https://github.com/uber/Python-Sample-Application/pull/13#discussion_r16617273","pull_request_url":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/comments/16617273"},"html":{"href":"https://github.com/uber/Python-Sample-Application/pull/13#discussion_r16617273"},"pull_request":{"href":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/13","id":20191340,"html_url":"https://github.com/uber/Python-Sample-Application/pull/13","diff_url":"https://github.com/uber/Python-Sample-Application/pull/13.diff","patch_url":"https://github.com/uber/Python-Sample-Application/pull/13.patch","issue_url":"https://api.github.com/repos/uber/Python-Sample-Application/issues/13","number":13,"state":"open","locked":false,"title":"Improve code coverage by including missing tests","user":{"login":"kaushal","id":1247702,"avatar_url":"https://avatars.githubusercontent.com/u/1247702?v=2","gravatar_id":"a8ffd56083efa5890580901593927581","url":"https://api.github.com/users/kaushal","html_url":"https://github.com/kaushal","followers_url":"https://api.github.com/users/kaushal/followers","following_url":"https://api.github.com/users/kaushal/following{/other_user}","gists_url":"https://api.github.com/users/kaushal/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushal/subscriptions","organizations_url":"https://api.github.com/users/kaushal/orgs","repos_url":"https://api.github.com/users/kaushal/repos","events_url":"https://api.github.com/users/kaushal/events{/privacy}","received_events_url":"https://api.github.com/users/kaushal/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-08-22T19:15:29Z","updated_at":"2014-08-22T19:40:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f0643df1ac15d696cbe138667f3f31d4ef330ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/13/commits","review_comments_url":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/13/comments","review_comment_url":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/comments/{number}","comments_url":"https://api.github.com/repos/uber/Python-Sample-Application/issues/13/comments","statuses_url":"https://api.github.com/repos/uber/Python-Sample-Application/statuses/dafff2a7df57a5f715afb5a0a5d9fc3ae9ec23e4","head":{"label":"uber:coverage","ref":"coverage","sha":"dafff2a7df57a5f715afb5a0a5d9fc3ae9ec23e4","user":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=2","gravatar_id":"e1aec73712d4c21ab7c7c1561133f65c","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"repo":{"id":22698473,"name":"Python-Sample-Application","full_name":"uber/Python-Sample-Application","owner":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=2","gravatar_id":"e1aec73712d4c21ab7c7c1561133f65c","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uber/Python-Sample-Application","description":"","fork":false,"url":"https://api.github.com/repos/uber/Python-Sample-Application","forks_url":"https://api.github.com/repos/uber/Python-Sample-Application/forks","keys_url":"https://api.github.com/repos/uber/Python-Sample-Application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uber/Python-Sample-Application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uber/Python-Sample-Application/teams","hooks_url":"https://api.github.com/repos/uber/Python-Sample-Application/hooks","issue_events_url":"https://api.github.com/repos/uber/Python-Sample-Application/issues/events{/number}","events_url":"https://api.github.com/repos/uber/Python-Sample-Application/events","assignees_url":"https://api.github.com/repos/uber/Python-Sample-Application/assignees{/user}","branches_url":"https://api.github.com/repos/uber/Python-Sample-Application/branches{/branch}","tags_url":"https://api.github.com/repos/uber/Python-Sample-Application/tags","blobs_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/refs{/sha}","trees_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uber/Python-Sample-Application/statuses/{sha}","languages_url":"https://api.github.com/repos/uber/Python-Sample-Application/languages","stargazers_url":"https://api.github.com/repos/uber/Python-Sample-Application/stargazers","contributors_url":"https://api.github.com/repos/uber/Python-Sample-Application/contributors","subscribers_url":"https://api.github.com/repos/uber/Python-Sample-Application/subscribers","subscription_url":"https://api.github.com/repos/uber/Python-Sample-Application/subscription","commits_url":"https://api.github.com/repos/uber/Python-Sample-Application/commits{/sha}","git_commits_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/commits{/sha}","comments_url":"https://api.github.com/repos/uber/Python-Sample-Application/comments{/number}","issue_comment_url":"https://api.github.com/repos/uber/Python-Sample-Application/issues/comments/{number}","contents_url":"https://api.github.com/repos/uber/Python-Sample-Application/contents/{+path}","compare_url":"https://api.github.com/repos/uber/Python-Sample-Application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uber/Python-Sample-Application/merges","archive_url":"https://api.github.com/repos/uber/Python-Sample-Application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uber/Python-Sample-Application/downloads","issues_url":"https://api.github.com/repos/uber/Python-Sample-Application/issues{/number}","pulls_url":"https://api.github.com/repos/uber/Python-Sample-Application/pulls{/number}","milestones_url":"https://api.github.com/repos/uber/Python-Sample-Application/milestones{/number}","notifications_url":"https://api.github.com/repos/uber/Python-Sample-Application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uber/Python-Sample-Application/labels{/name}","releases_url":"https://api.github.com/repos/uber/Python-Sample-Application/releases{/id}","created_at":"2014-08-06T21:19:49Z","updated_at":"2014-08-22T19:36:26Z","pushed_at":"2014-08-22T19:34:50Z","git_url":"git://github.com/uber/Python-Sample-Application.git","ssh_url":"git@github.com:uber/Python-Sample-Application.git","clone_url":"https://github.com/uber/Python-Sample-Application.git","svn_url":"https://github.com/uber/Python-Sample-Application","homepage":null,"size":301,"stargazers_count":34,"watchers_count":34,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":34,"default_branch":"master"}},"base":{"label":"uber:master","ref":"master","sha":"e5904a4222f7aa33672c523356949280b92f0f2c","user":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=2","gravatar_id":"e1aec73712d4c21ab7c7c1561133f65c","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"repo":{"id":22698473,"name":"Python-Sample-Application","full_name":"uber/Python-Sample-Application","owner":{"login":"uber","id":538264,"avatar_url":"https://avatars.githubusercontent.com/u/538264?v=2","gravatar_id":"e1aec73712d4c21ab7c7c1561133f65c","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uber/Python-Sample-Application","description":"","fork":false,"url":"https://api.github.com/repos/uber/Python-Sample-Application","forks_url":"https://api.github.com/repos/uber/Python-Sample-Application/forks","keys_url":"https://api.github.com/repos/uber/Python-Sample-Application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uber/Python-Sample-Application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uber/Python-Sample-Application/teams","hooks_url":"https://api.github.com/repos/uber/Python-Sample-Application/hooks","issue_events_url":"https://api.github.com/repos/uber/Python-Sample-Application/issues/events{/number}","events_url":"https://api.github.com/repos/uber/Python-Sample-Application/events","assignees_url":"https://api.github.com/repos/uber/Python-Sample-Application/assignees{/user}","branches_url":"https://api.github.com/repos/uber/Python-Sample-Application/branches{/branch}","tags_url":"https://api.github.com/repos/uber/Python-Sample-Application/tags","blobs_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/refs{/sha}","trees_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uber/Python-Sample-Application/statuses/{sha}","languages_url":"https://api.github.com/repos/uber/Python-Sample-Application/languages","stargazers_url":"https://api.github.com/repos/uber/Python-Sample-Application/stargazers","contributors_url":"https://api.github.com/repos/uber/Python-Sample-Application/contributors","subscribers_url":"https://api.github.com/repos/uber/Python-Sample-Application/subscribers","subscription_url":"https://api.github.com/repos/uber/Python-Sample-Application/subscription","commits_url":"https://api.github.com/repos/uber/Python-Sample-Application/commits{/sha}","git_commits_url":"https://api.github.com/repos/uber/Python-Sample-Application/git/commits{/sha}","comments_url":"https://api.github.com/repos/uber/Python-Sample-Application/comments{/number}","issue_comment_url":"https://api.github.com/repos/uber/Python-Sample-Application/issues/comments/{number}","contents_url":"https://api.github.com/repos/uber/Python-Sample-Application/contents/{+path}","compare_url":"https://api.github.com/repos/uber/Python-Sample-Application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uber/Python-Sample-Application/merges","archive_url":"https://api.github.com/repos/uber/Python-Sample-Application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uber/Python-Sample-Application/downloads","issues_url":"https://api.github.com/repos/uber/Python-Sample-Application/issues{/number}","pulls_url":"https://api.github.com/repos/uber/Python-Sample-Application/pulls{/number}","milestones_url":"https://api.github.com/repos/uber/Python-Sample-Application/milestones{/number}","notifications_url":"https://api.github.com/repos/uber/Python-Sample-Application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uber/Python-Sample-Application/labels{/name}","releases_url":"https://api.github.com/repos/uber/Python-Sample-Application/releases{/id}","created_at":"2014-08-06T21:19:49Z","updated_at":"2014-08-22T19:36:26Z","pushed_at":"2014-08-22T19:34:50Z","git_url":"git://github.com/uber/Python-Sample-Application.git","ssh_url":"git@github.com:uber/Python-Sample-Application.git","clone_url":"https://github.com/uber/Python-Sample-Application.git","svn_url":"https://github.com/uber/Python-Sample-Application","homepage":null,"size":301,"stargazers_count":34,"watchers_count":34,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/13"},"html":{"href":"https://github.com/uber/Python-Sample-Application/pull/13"},"issue":{"href":"https://api.github.com/repos/uber/Python-Sample-Application/issues/13"},"comments":{"href":"https://api.github.com/repos/uber/Python-Sample-Application/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/uber/Python-Sample-Application/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/uber/Python-Sample-Application/statuses/dafff2a7df57a5f715afb5a0a5d9fc3ae9ec23e4"}}}}