GitHub PullRequestReviewCommentEvent at 2014-10-20 21:25:15
Repository: hpit_services
Actor: kitanata
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/tutorgen/hpit_services/pulls/comments/19114940","id":19114940,"diff_hunk":"@@ -83,24 +83,24 @@ def test_kt_trace_no_initial_settings(self):\n         \"\"\"\n         KnowledgeTracingPlugin.kt_trace() No settings in db:\n         \"\"\"\n-        msg = {\"message_id\":\"2\",\"sender_entity_id\":\"3\",\"skill_id\":str(ObjectId()),\"correct\":True,\"student_id\":\"4\"}\n-        msg[\"probability_known\"] = .7\n-        msg[\"probability_learned\"] = .2\n-        msg[\"probability_guess\"] = .3\n-        msg[\"probability_mistake\"] = .4\n+        skill_id = str(ObjectId())\n+        msg = {\n+            \"message_id\": \"2\",\n+            \"sender_entity_id\": \"3\",\n+            \"skill_id\": skill_id,\n+            \"correct\": True,\n+            \"student_id\": \"4\"\n+        }\n         self.test_subject.kt_trace(msg)\n-        self.test_subject.send_response.assert_called_once_with(\"2\",{\n-                'error': 'No initial settings for plugin (KnowledgeTracingPlugin).',\n-                'send': {\n-                    'event_name': 'kt_set_initial',\n-                    'probability_known': 'float(0.0-1.0)', \n-                    'probability_learned': 'float(0.0-1.0)',\n-                    'probability_guess': 'float(0.0-1.0)',\n-                    'probability_mistake': 'float(0.0-1.0)',\n-                    'student_id':'str(ObjectId)',\n-                    'skill_id':'str(ObjectId)',\n-                }\n-            })\n+        self.test_subject.send_response.assert_called_once_with(\"2\", {","path":"tests/plugins/test_knowledge_tracing.py","position":30,"original_position":30,"commit_id":"515d8da0e9ea84b8e8400855cc4c567c89dca5de","original_commit_id":"8cf4c0166974197a5744200eec8e2dd4e93aec31","user":{"login":"kitanata","id":778057,"avatar_url":"https://avatars.githubusercontent.com/u/778057?v=2","gravatar_id":"","url":"https://api.github.com/users/kitanata","html_url":"https://github.com/kitanata","followers_url":"https://api.github.com/users/kitanata/followers","following_url":"https://api.github.com/users/kitanata/following{/other_user}","gists_url":"https://api.github.com/users/kitanata/gists{/gist_id}","starred_url":"https://api.github.com/users/kitanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitanata/subscriptions","organizations_url":"https://api.github.com/users/kitanata/orgs","repos_url":"https://api.github.com/users/kitanata/repos","events_url":"https://api.github.com/users/kitanata/events{/privacy}","received_events_url":"https://api.github.com/users/kitanata/received_events","type":"User","site_admin":false},"body":"You mean like a key in the response like {'created': True}? Or?","created_at":"2014-10-20T21:25:15Z","updated_at":"2014-10-20T21:25:15Z","html_url":"https://github.com/tutorgen/hpit_services/pull/49#discussion_r19114940","pull_request_url":"https://api.github.com/repos/tutorgen/hpit_services/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/tutorgen/hpit_services/pulls/comments/19114940"},"html":{"href":"https://github.com/tutorgen/hpit_services/pull/49#discussion_r19114940"},"pull_request":{"href":"https://api.github.com/repos/tutorgen/hpit_services/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/tutorgen/hpit_services/pulls/49","id":22511172,"html_url":"https://github.com/tutorgen/hpit_services/pull/49","diff_url":"https://github.com/tutorgen/hpit_services/pull/49.diff","patch_url":"https://github.com/tutorgen/hpit_services/pull/49.patch","issue_url":"https://api.github.com/repos/tutorgen/hpit_services/issues/49","number":49,"state":"open","locked":false,"title":"Load testing tutor","user":{"login":"kitanata","id":778057,"avatar_url":"https://avatars.githubusercontent.com/u/778057?v=2","gravatar_id":"","url":"https://api.github.com/users/kitanata","html_url":"https://github.com/kitanata","followers_url":"https://api.github.com/users/kitanata/followers","following_url":"https://api.github.com/users/kitanata/following{/other_user}","gists_url":"https://api.github.com/users/kitanata/gists{/gist_id}","starred_url":"https://api.github.com/users/kitanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitanata/subscriptions","organizations_url":"https://api.github.com/users/kitanata/orgs","repos_url":"https://api.github.com/users/kitanata/repos","events_url":"https://api.github.com/users/kitanata/events{/privacy}","received_events_url":"https://api.github.com/users/kitanata/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-10-09T17:53:35Z","updated_at":"2014-10-20T21:25:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6290b840c921c42cdb437c5ac2bc123c6326f1c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tutorgen/hpit_services/pulls/49/commits","review_comments_url":"https://api.github.com/repos/tutorgen/hpit_services/pulls/49/comments","review_comment_url":"https://api.github.com/repos/tutorgen/hpit_services/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tutorgen/hpit_services/issues/49/comments","statuses_url":"https://api.github.com/repos/tutorgen/hpit_services/statuses/515d8da0e9ea84b8e8400855cc4c567c89dca5de","head":{"label":"tutorgen:load-testing-tutor","ref":"load-testing-tutor","sha":"515d8da0e9ea84b8e8400855cc4c567c89dca5de","user":{"login":"tutorgen","id":6326265,"avatar_url":"https://avatars.githubusercontent.com/u/6326265?v=2","gravatar_id":"","url":"https://api.github.com/users/tutorgen","html_url":"https://github.com/tutorgen","followers_url":"https://api.github.com/users/tutorgen/followers","following_url":"https://api.github.com/users/tutorgen/following{/other_user}","gists_url":"https://api.github.com/users/tutorgen/gists{/gist_id}","starred_url":"https://api.github.com/users/tutorgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutorgen/subscriptions","organizations_url":"https://api.github.com/users/tutorgen/orgs","repos_url":"https://api.github.com/users/tutorgen/repos","events_url":"https://api.github.com/users/tutorgen/events{/privacy}","received_events_url":"https://api.github.com/users/tutorgen/received_events","type":"User","site_admin":false},"repo":{"id":18916410,"name":"hpit_services","full_name":"tutorgen/hpit_services","owner":{"login":"tutorgen","id":6326265,"avatar_url":"https://avatars.githubusercontent.com/u/6326265?v=2","gravatar_id":"","url":"https://api.github.com/users/tutorgen","html_url":"https://github.com/tutorgen","followers_url":"https://api.github.com/users/tutorgen/followers","following_url":"https://api.github.com/users/tutorgen/following{/other_user}","gists_url":"https://api.github.com/users/tutorgen/gists{/gist_id}","starred_url":"https://api.github.com/users/tutorgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutorgen/subscriptions","organizations_url":"https://api.github.com/users/tutorgen/orgs","repos_url":"https://api.github.com/users/tutorgen/repos","events_url":"https://api.github.com/users/tutorgen/events{/privacy}","received_events_url":"https://api.github.com/users/tutorgen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tutorgen/hpit_services","description":"Hyper Personalized Interactive Tutor - Web Services","fork":false,"url":"https://api.github.com/repos/tutorgen/hpit_services","forks_url":"https://api.github.com/repos/tutorgen/hpit_services/forks","keys_url":"https://api.github.com/repos/tutorgen/hpit_services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tutorgen/hpit_services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tutorgen/hpit_services/teams","hooks_url":"https://api.github.com/repos/tutorgen/hpit_services/hooks","issue_events_url":"https://api.github.com/repos/tutorgen/hpit_services/issues/events{/number}","events_url":"https://api.github.com/repos/tutorgen/hpit_services/events","assignees_url":"https://api.github.com/repos/tutorgen/hpit_services/assignees{/user}","branches_url":"https://api.github.com/repos/tutorgen/hpit_services/branches{/branch}","tags_url":"https://api.github.com/repos/tutorgen/hpit_services/tags","blobs_url":"https://api.github.com/repos/tutorgen/hpit_services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tutorgen/hpit_services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tutorgen/hpit_services/git/refs{/sha}","trees_url":"https://api.github.com/repos/tutorgen/hpit_services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tutorgen/hpit_services/statuses/{sha}","languages_url":"https://api.github.com/repos/tutorgen/hpit_services/languages","stargazers_url":"https://api.github.com/repos/tutorgen/hpit_services/stargazers","contributors_url":"https://api.github.com/repos/tutorgen/hpit_services/contributors","subscribers_url":"https://api.github.com/repos/tutorgen/hpit_services/subscribers","subscription_url":"https://api.github.com/repos/tutorgen/hpit_services/subscription","commits_url":"https://api.github.com/repos/tutorgen/hpit_services/commits{/sha}","git_commits_url":"https://api.github.com/repos/tutorgen/hpit_services/git/commits{/sha}","comments_url":"https://api.github.com/repos/tutorgen/hpit_services/comments{/number}","issue_comment_url":"https://api.github.com/repos/tutorgen/hpit_services/issues/comments/{number}","contents_url":"https://api.github.com/repos/tutorgen/hpit_services/contents/{+path}","compare_url":"https://api.github.com/repos/tutorgen/hpit_services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tutorgen/hpit_services/merges","archive_url":"https://api.github.com/repos/tutorgen/hpit_services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tutorgen/hpit_services/downloads","issues_url":"https://api.github.com/repos/tutorgen/hpit_services/issues{/number}","pulls_url":"https://api.github.com/repos/tutorgen/hpit_services/pulls{/number}","milestones_url":"https://api.github.com/repos/tutorgen/hpit_services/milestones{/number}","notifications_url":"https://api.github.com/repos/tutorgen/hpit_services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tutorgen/hpit_services/labels{/name}","releases_url":"https://api.github.com/repos/tutorgen/hpit_services/releases{/id}","created_at":"2014-04-18T15:10:11Z","updated_at":"2014-09-03T15:12:26Z","pushed_at":"2014-10-20T21:21:55Z","git_url":"git://github.com/tutorgen/hpit_services.git","ssh_url":"git@github.com:tutorgen/hpit_services.git","clone_url":"https://github.com/tutorgen/hpit_services.git","svn_url":"https://github.com/tutorgen/hpit_services","homepage":null,"size":14706,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"tutorgen:master","ref":"master","sha":"15261e4c3003688f97c7cabd8efa207b44c962ef","user":{"login":"tutorgen","id":6326265,"avatar_url":"https://avatars.githubusercontent.com/u/6326265?v=2","gravatar_id":"","url":"https://api.github.com/users/tutorgen","html_url":"https://github.com/tutorgen","followers_url":"https://api.github.com/users/tutorgen/followers","following_url":"https://api.github.com/users/tutorgen/following{/other_user}","gists_url":"https://api.github.com/users/tutorgen/gists{/gist_id}","starred_url":"https://api.github.com/users/tutorgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutorgen/subscriptions","organizations_url":"https://api.github.com/users/tutorgen/orgs","repos_url":"https://api.github.com/users/tutorgen/repos","events_url":"https://api.github.com/users/tutorgen/events{/privacy}","received_events_url":"https://api.github.com/users/tutorgen/received_events","type":"User","site_admin":false},"repo":{"id":18916410,"name":"hpit_services","full_name":"tutorgen/hpit_services","owner":{"login":"tutorgen","id":6326265,"avatar_url":"https://avatars.githubusercontent.com/u/6326265?v=2","gravatar_id":"","url":"https://api.github.com/users/tutorgen","html_url":"https://github.com/tutorgen","followers_url":"https://api.github.com/users/tutorgen/followers","following_url":"https://api.github.com/users/tutorgen/following{/other_user}","gists_url":"https://api.github.com/users/tutorgen/gists{/gist_id}","starred_url":"https://api.github.com/users/tutorgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutorgen/subscriptions","organizations_url":"https://api.github.com/users/tutorgen/orgs","repos_url":"https://api.github.com/users/tutorgen/repos","events_url":"https://api.github.com/users/tutorgen/events{/privacy}","received_events_url":"https://api.github.com/users/tutorgen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tutorgen/hpit_services","description":"Hyper Personalized Interactive Tutor - Web Services","fork":false,"url":"https://api.github.com/repos/tutorgen/hpit_services","forks_url":"https://api.github.com/repos/tutorgen/hpit_services/forks","keys_url":"https://api.github.com/repos/tutorgen/hpit_services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tutorgen/hpit_services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tutorgen/hpit_services/teams","hooks_url":"https://api.github.com/repos/tutorgen/hpit_services/hooks","issue_events_url":"https://api.github.com/repos/tutorgen/hpit_services/issues/events{/number}","events_url":"https://api.github.com/repos/tutorgen/hpit_services/events","assignees_url":"https://api.github.com/repos/tutorgen/hpit_services/assignees{/user}","branches_url":"https://api.github.com/repos/tutorgen/hpit_services/branches{/branch}","tags_url":"https://api.github.com/repos/tutorgen/hpit_services/tags","blobs_url":"https://api.github.com/repos/tutorgen/hpit_services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tutorgen/hpit_services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tutorgen/hpit_services/git/refs{/sha}","trees_url":"https://api.github.com/repos/tutorgen/hpit_services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tutorgen/hpit_services/statuses/{sha}","languages_url":"https://api.github.com/repos/tutorgen/hpit_services/languages","stargazers_url":"https://api.github.com/repos/tutorgen/hpit_services/stargazers","contributors_url":"https://api.github.com/repos/tutorgen/hpit_services/contributors","subscribers_url":"https://api.github.com/repos/tutorgen/hpit_services/subscribers","subscription_url":"https://api.github.com/repos/tutorgen/hpit_services/subscription","commits_url":"https://api.github.com/repos/tutorgen/hpit_services/commits{/sha}","git_commits_url":"https://api.github.com/repos/tutorgen/hpit_services/git/commits{/sha}","comments_url":"https://api.github.com/repos/tutorgen/hpit_services/comments{/number}","issue_comment_url":"https://api.github.com/repos/tutorgen/hpit_services/issues/comments/{number}","contents_url":"https://api.github.com/repos/tutorgen/hpit_services/contents/{+path}","compare_url":"https://api.github.com/repos/tutorgen/hpit_services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tutorgen/hpit_services/merges","archive_url":"https://api.github.com/repos/tutorgen/hpit_services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tutorgen/hpit_services/downloads","issues_url":"https://api.github.com/repos/tutorgen/hpit_services/issues{/number}","pulls_url":"https://api.github.com/repos/tutorgen/hpit_services/pulls{/number}","milestones_url":"https://api.github.com/repos/tutorgen/hpit_services/milestones{/number}","notifications_url":"https://api.github.com/repos/tutorgen/hpit_services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tutorgen/hpit_services/labels{/name}","releases_url":"https://api.github.com/repos/tutorgen/hpit_services/releases{/id}","created_at":"2014-04-18T15:10:11Z","updated_at":"2014-09-03T15:12:26Z","pushed_at":"2014-10-20T21:21:55Z","git_url":"git://github.com/tutorgen/hpit_services.git","ssh_url":"git@github.com:tutorgen/hpit_services.git","clone_url":"https://github.com/tutorgen/hpit_services.git","svn_url":"https://github.com/tutorgen/hpit_services","homepage":null,"size":14706,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tutorgen/hpit_services/pulls/49"},"html":{"href":"https://github.com/tutorgen/hpit_services/pull/49"},"issue":{"href":"https://api.github.com/repos/tutorgen/hpit_services/issues/49"},"comments":{"href":"https://api.github.com/repos/tutorgen/hpit_services/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/tutorgen/hpit_services/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/tutorgen/hpit_services/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tutorgen/hpit_services/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/tutorgen/hpit_services/statuses/515d8da0e9ea84b8e8400855cc4c567c89dca5de"}}}}