{"action":"created","comment":{"url":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/comments/93216212","pull_request_review_id":13737611,"id":93216212,"diff_hunk":"@@ -39,4 +39,17 @@ def test_it_handles_grace_period(self):\n         # Expect no exceptions--\n         Command().handle_one(check)\n \n-    ### Assert when Command's handle many that when handle_many should return True\n+    @patch(\"hc.api.management.commands.sendalerts.Command.handle_one\")\n+    def test_it_handles_many(self, mock):\n+\n+        yesterday = timezone.now() - timedelta(days=1)\n+        names = [\"Check %d\" % d for d in range(0, 10)]\n+\n+        for name in names:\n+            check = Check(user=self.alice, name=name)\n+            check.alert_after = yesterday\n+            check.status = \"up\"\n+            check.save()\n+\n+        result = Command().handle_many()\n+        assert result, \"handle_many should return True\"","path":"hc/api/tests/test_sendalerts.py","position":27,"original_position":27,"commit_id":"13f3a59f65f7f94cca76291d4854a98bd47768ca","original_commit_id":"13f3a59f65f7f94cca76291d4854a98bd47768ca","user":{"login":"andela-egichuri","id":13940254,"avatar_url":"https://avatars.githubusercontent.com/u/13940254?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-egichuri","html_url":"https://github.com/andela-egichuri","followers_url":"https://api.github.com/users/andela-egichuri/followers","following_url":"https://api.github.com/users/andela-egichuri/following{/other_user}","gists_url":"https://api.github.com/users/andela-egichuri/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-egichuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-egichuri/subscriptions","organizations_url":"https://api.github.com/users/andela-egichuri/orgs","repos_url":"https://api.github.com/users/andela-egichuri/repos","events_url":"https://api.github.com/users/andela-egichuri/events{/privacy}","received_events_url":"https://api.github.com/users/andela-egichuri/received_events","type":"User","site_admin":false},"body":"Use unittest's `assert`","created_at":"2016-12-20T11:09:42Z","updated_at":"2016-12-20T11:09:42Z","html_url":"https://github.com/andela/healthchecks_kwach/pull/3#discussion_r93216212","pull_request_url":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/comments/93216212"},"html":{"href":"https://github.com/andela/healthchecks_kwach/pull/3#discussion_r93216212"},"pull_request":{"href":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/3","id":97963974,"html_url":"https://github.com/andela/healthchecks_kwach/pull/3","diff_url":"https://github.com/andela/healthchecks_kwach/pull/3.diff","patch_url":"https://github.com/andela/healthchecks_kwach/pull/3.patch","issue_url":"https://api.github.com/repos/andela/healthchecks_kwach/issues/3","number":3,"state":"open","locked":false,"title":"Bug fix api tests","user":{"login":"skipcheru","id":4677105,"avatar_url":"https://avatars.githubusercontent.com/u/4677105?v=3","gravatar_id":"","url":"https://api.github.com/users/skipcheru","html_url":"https://github.com/skipcheru","followers_url":"https://api.github.com/users/skipcheru/followers","following_url":"https://api.github.com/users/skipcheru/following{/other_user}","gists_url":"https://api.github.com/users/skipcheru/gists{/gist_id}","starred_url":"https://api.github.com/users/skipcheru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skipcheru/subscriptions","organizations_url":"https://api.github.com/users/skipcheru/orgs","repos_url":"https://api.github.com/users/skipcheru/repos","events_url":"https://api.github.com/users/skipcheru/events{/privacy}","received_events_url":"https://api.github.com/users/skipcheru/received_events","type":"User","site_admin":false},"body":"We have finished making changes to api tests. Please review the code.","created_at":"2016-12-14T14:38:22Z","updated_at":"2016-12-20T11:09:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"428a67437895db3329935ed385e8b6175ab650f5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/3/commits","review_comments_url":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/3/comments","review_comment_url":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/healthchecks_kwach/issues/3/comments","statuses_url":"https://api.github.com/repos/andela/healthchecks_kwach/statuses/13f3a59f65f7f94cca76291d4854a98bd47768ca","head":{"label":"andela:bug-fix_api_tests","ref":"bug-fix_api_tests","sha":"13f3a59f65f7f94cca76291d4854a98bd47768ca","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":74756149,"name":"healthchecks_kwach","full_name":"andela/healthchecks_kwach","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/healthchecks_kwach","description":null,"fork":false,"url":"https://api.github.com/repos/andela/healthchecks_kwach","forks_url":"https://api.github.com/repos/andela/healthchecks_kwach/forks","keys_url":"https://api.github.com/repos/andela/healthchecks_kwach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/healthchecks_kwach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/healthchecks_kwach/teams","hooks_url":"https://api.github.com/repos/andela/healthchecks_kwach/hooks","issue_events_url":"https://api.github.com/repos/andela/healthchecks_kwach/issues/events{/number}","events_url":"https://api.github.com/repos/andela/healthchecks_kwach/events","assignees_url":"https://api.github.com/repos/andela/healthchecks_kwach/assignees{/user}","branches_url":"https://api.github.com/repos/andela/healthchecks_kwach/branches{/branch}","tags_url":"https://api.github.com/repos/andela/healthchecks_kwach/tags","blobs_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/healthchecks_kwach/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/healthchecks_kwach/languages","stargazers_url":"https://api.github.com/repos/andela/healthchecks_kwach/stargazers","contributors_url":"https://api.github.com/repos/andela/healthchecks_kwach/contributors","subscribers_url":"https://api.github.com/repos/andela/healthchecks_kwach/subscribers","subscription_url":"https://api.github.com/repos/andela/healthchecks_kwach/subscription","commits_url":"https://api.github.com/repos/andela/healthchecks_kwach/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/healthchecks_kwach/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/healthchecks_kwach/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/healthchecks_kwach/contents/{+path}","compare_url":"https://api.github.com/repos/andela/healthchecks_kwach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/healthchecks_kwach/merges","archive_url":"https://api.github.com/repos/andela/healthchecks_kwach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/healthchecks_kwach/downloads","issues_url":"https://api.github.com/repos/andela/healthchecks_kwach/issues{/number}","pulls_url":"https://api.github.com/repos/andela/healthchecks_kwach/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/healthchecks_kwach/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/healthchecks_kwach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/healthchecks_kwach/labels{/name}","releases_url":"https://api.github.com/repos/andela/healthchecks_kwach/releases{/id}","deployments_url":"https://api.github.com/repos/andela/healthchecks_kwach/deployments","created_at":"2016-11-25T12:19:56Z","updated_at":"2016-11-25T12:33:04Z","pushed_at":"2016-12-20T10:29:49Z","git_url":"git://github.com/andela/healthchecks_kwach.git","ssh_url":"git@github.com:andela/healthchecks_kwach.git","clone_url":"https://github.com/andela/healthchecks_kwach.git","svn_url":"https://github.com/andela/healthchecks_kwach","homepage":null,"size":2359,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"5a9fc325415713f13c61a2a8b6e0d212656ce98b","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":74756149,"name":"healthchecks_kwach","full_name":"andela/healthchecks_kwach","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/healthchecks_kwach","description":null,"fork":false,"url":"https://api.github.com/repos/andela/healthchecks_kwach","forks_url":"https://api.github.com/repos/andela/healthchecks_kwach/forks","keys_url":"https://api.github.com/repos/andela/healthchecks_kwach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/healthchecks_kwach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/healthchecks_kwach/teams","hooks_url":"https://api.github.com/repos/andela/healthchecks_kwach/hooks","issue_events_url":"https://api.github.com/repos/andela/healthchecks_kwach/issues/events{/number}","events_url":"https://api.github.com/repos/andela/healthchecks_kwach/events","assignees_url":"https://api.github.com/repos/andela/healthchecks_kwach/assignees{/user}","branches_url":"https://api.github.com/repos/andela/healthchecks_kwach/branches{/branch}","tags_url":"https://api.github.com/repos/andela/healthchecks_kwach/tags","blobs_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/healthchecks_kwach/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/healthchecks_kwach/languages","stargazers_url":"https://api.github.com/repos/andela/healthchecks_kwach/stargazers","contributors_url":"https://api.github.com/repos/andela/healthchecks_kwach/contributors","subscribers_url":"https://api.github.com/repos/andela/healthchecks_kwach/subscribers","subscription_url":"https://api.github.com/repos/andela/healthchecks_kwach/subscription","commits_url":"https://api.github.com/repos/andela/healthchecks_kwach/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/healthchecks_kwach/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/healthchecks_kwach/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/healthchecks_kwach/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/healthchecks_kwach/contents/{+path}","compare_url":"https://api.github.com/repos/andela/healthchecks_kwach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/healthchecks_kwach/merges","archive_url":"https://api.github.com/repos/andela/healthchecks_kwach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/healthchecks_kwach/downloads","issues_url":"https://api.github.com/repos/andela/healthchecks_kwach/issues{/number}","pulls_url":"https://api.github.com/repos/andela/healthchecks_kwach/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/healthchecks_kwach/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/healthchecks_kwach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/healthchecks_kwach/labels{/name}","releases_url":"https://api.github.com/repos/andela/healthchecks_kwach/releases{/id}","deployments_url":"https://api.github.com/repos/andela/healthchecks_kwach/deployments","created_at":"2016-11-25T12:19:56Z","updated_at":"2016-11-25T12:33:04Z","pushed_at":"2016-12-20T10:29:49Z","git_url":"git://github.com/andela/healthchecks_kwach.git","ssh_url":"git@github.com:andela/healthchecks_kwach.git","clone_url":"https://github.com/andela/healthchecks_kwach.git","svn_url":"https://github.com/andela/healthchecks_kwach","homepage":null,"size":2359,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/3"},"html":{"href":"https://github.com/andela/healthchecks_kwach/pull/3"},"issue":{"href":"https://api.github.com/repos/andela/healthchecks_kwach/issues/3"},"comments":{"href":"https://api.github.com/repos/andela/healthchecks_kwach/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/healthchecks_kwach/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/andela/healthchecks_kwach/statuses/13f3a59f65f7f94cca76291d4854a98bd47768ca"}}}}
{"actor":{"display_login":"andela-egichuri"}}