{"action":"created","comment":{"url":"https://api.github.com/repos/Stanford-Online/notifier/pulls/comments/50609888","id":50609888,"diff_hunk":"@@ -21,3 +26,31 @@ class CommandsTestCase(TestCase):\n                        BROKER_BACKEND='memory',)\n     def test_forums_digest(self):\n         pass\n+\n+    def test_forums_digests_flagged_dry(self):\n+        \"\"\"\n+        Test that command with dry run option works.\n+        \"\"\"\n+        test_threads = (\n+            {\n+                'course_id': 'org/course/run',\n+                'commentable_id': 'test_commentable',\n+                'comment_thread_id': i,\n+            }\n+            for i in xrange(1, 6)\n+        )\n+        test_moderators = (usern(i) for i in xrange(10))","path":"notifier/tests/test_commands.py","position":41,"original_position":41,"commit_id":"4fc0029bbc443d36d49a12b7d10ccf424ebb9b36","original_commit_id":"4fc0029bbc443d36d49a12b7d10ccf424ebb9b36","user":{"login":"stvstnfrd","id":7300975,"avatar_url":"https://avatars.githubusercontent.com/u/7300975?v=3","gravatar_id":"","url":"https://api.github.com/users/stvstnfrd","html_url":"https://github.com/stvstnfrd","followers_url":"https://api.github.com/users/stvstnfrd/followers","following_url":"https://api.github.com/users/stvstnfrd/following{/other_user}","gists_url":"https://api.github.com/users/stvstnfrd/gists{/gist_id}","starred_url":"https://api.github.com/users/stvstnfrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stvstnfrd/subscriptions","organizations_url":"https://api.github.com/users/stvstnfrd/orgs","repos_url":"https://api.github.com/users/stvstnfrd/repos","events_url":"https://api.github.com/users/stvstnfrd/events{/privacy}","received_events_url":"https://api.github.com/users/stvstnfrd/received_events","type":"User","site_admin":false},"body":"Any reason this is a tuple, not a list?","created_at":"2016-01-23T00:39:48Z","updated_at":"2016-01-23T00:39:48Z","html_url":"https://github.com/Stanford-Online/notifier/pull/4#discussion_r50609888","pull_request_url":"https://api.github.com/repos/Stanford-Online/notifier/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Stanford-Online/notifier/pulls/comments/50609888"},"html":{"href":"https://github.com/Stanford-Online/notifier/pull/4#discussion_r50609888"},"pull_request":{"href":"https://api.github.com/repos/Stanford-Online/notifier/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Stanford-Online/notifier/pulls/4","id":53441284,"html_url":"https://github.com/Stanford-Online/notifier/pull/4","diff_url":"https://github.com/Stanford-Online/notifier/pull/4.diff","patch_url":"https://github.com/Stanford-Online/notifier/pull/4.patch","issue_url":"https://api.github.com/repos/Stanford-Online/notifier/issues/4","number":4,"state":"open","locked":false,"title":"Revive flagged forum digest","user":{"login":"kluo","id":868615,"avatar_url":"https://avatars.githubusercontent.com/u/868615?v=3","gravatar_id":"","url":"https://api.github.com/users/kluo","html_url":"https://github.com/kluo","followers_url":"https://api.github.com/users/kluo/followers","following_url":"https://api.github.com/users/kluo/following{/other_user}","gists_url":"https://api.github.com/users/kluo/gists{/gist_id}","starred_url":"https://api.github.com/users/kluo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kluo/subscriptions","organizations_url":"https://api.github.com/users/kluo/orgs","repos_url":"https://api.github.com/users/kluo/repos","events_url":"https://api.github.com/users/kluo/events{/privacy}","received_events_url":"https://api.github.com/users/kluo/received_events","type":"User","site_admin":false},"body":"No longer using Heroku\r\n\r\n@stvstnfrd @dcadams \r\n\r\nSplitting #2 ","created_at":"2015-12-11T20:39:07Z","updated_at":"2016-01-23T00:39:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"095274f9d615e880d467417b289db7c1eb257fa9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Stanford-Online/notifier/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Stanford-Online/notifier/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Stanford-Online/notifier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Stanford-Online/notifier/issues/4/comments","statuses_url":"https://api.github.com/repos/Stanford-Online/notifier/statuses/4fc0029bbc443d36d49a12b7d10ccf424ebb9b36","head":{"label":"Stanford-Online:kluo/flagged","ref":"kluo/flagged","sha":"4fc0029bbc443d36d49a12b7d10ccf424ebb9b36","user":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars.githubusercontent.com/u/2159497?v=3","gravatar_id":"","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"repo":{"id":20937904,"name":"notifier","full_name":"Stanford-Online/notifier","owner":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars.githubusercontent.com/u/2159497?v=3","gravatar_id":"","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Stanford-Online/notifier","description":"","fork":true,"url":"https://api.github.com/repos/Stanford-Online/notifier","forks_url":"https://api.github.com/repos/Stanford-Online/notifier/forks","keys_url":"https://api.github.com/repos/Stanford-Online/notifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stanford-Online/notifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stanford-Online/notifier/teams","hooks_url":"https://api.github.com/repos/Stanford-Online/notifier/hooks","issue_events_url":"https://api.github.com/repos/Stanford-Online/notifier/issues/events{/number}","events_url":"https://api.github.com/repos/Stanford-Online/notifier/events","assignees_url":"https://api.github.com/repos/Stanford-Online/notifier/assignees{/user}","branches_url":"https://api.github.com/repos/Stanford-Online/notifier/branches{/branch}","tags_url":"https://api.github.com/repos/Stanford-Online/notifier/tags","blobs_url":"https://api.github.com/repos/Stanford-Online/notifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stanford-Online/notifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stanford-Online/notifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stanford-Online/notifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stanford-Online/notifier/statuses/{sha}","languages_url":"https://api.github.com/repos/Stanford-Online/notifier/languages","stargazers_url":"https://api.github.com/repos/Stanford-Online/notifier/stargazers","contributors_url":"https://api.github.com/repos/Stanford-Online/notifier/contributors","subscribers_url":"https://api.github.com/repos/Stanford-Online/notifier/subscribers","subscription_url":"https://api.github.com/repos/Stanford-Online/notifier/subscription","commits_url":"https://api.github.com/repos/Stanford-Online/notifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stanford-Online/notifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stanford-Online/notifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stanford-Online/notifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stanford-Online/notifier/contents/{+path}","compare_url":"https://api.github.com/repos/Stanford-Online/notifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stanford-Online/notifier/merges","archive_url":"https://api.github.com/repos/Stanford-Online/notifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stanford-Online/notifier/downloads","issues_url":"https://api.github.com/repos/Stanford-Online/notifier/issues{/number}","pulls_url":"https://api.github.com/repos/Stanford-Online/notifier/pulls{/number}","milestones_url":"https://api.github.com/repos/Stanford-Online/notifier/milestones{/number}","notifications_url":"https://api.github.com/repos/Stanford-Online/notifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stanford-Online/notifier/labels{/name}","releases_url":"https://api.github.com/repos/Stanford-Online/notifier/releases{/id}","deployments_url":"https://api.github.com/repos/Stanford-Online/notifier/deployments","created_at":"2014-06-17T20:09:03Z","updated_at":"2014-06-17T20:31:21Z","pushed_at":"2016-01-22T09:50:29Z","git_url":"git://github.com/Stanford-Online/notifier.git","ssh_url":"git@github.com:Stanford-Online/notifier.git","clone_url":"https://github.com/Stanford-Online/notifier.git","svn_url":"https://github.com/Stanford-Online/notifier","homepage":null,"size":213,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Stanford-Online:kluo/update-2015-11-06","ref":"kluo/update-2015-11-06","sha":"4cc3426564e30037d816ff371a007bbc79454af2","user":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars.githubusercontent.com/u/2159497?v=3","gravatar_id":"","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"repo":{"id":20937904,"name":"notifier","full_name":"Stanford-Online/notifier","owner":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars.githubusercontent.com/u/2159497?v=3","gravatar_id":"","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Stanford-Online/notifier","description":"","fork":true,"url":"https://api.github.com/repos/Stanford-Online/notifier","forks_url":"https://api.github.com/repos/Stanford-Online/notifier/forks","keys_url":"https://api.github.com/repos/Stanford-Online/notifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stanford-Online/notifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stanford-Online/notifier/teams","hooks_url":"https://api.github.com/repos/Stanford-Online/notifier/hooks","issue_events_url":"https://api.github.com/repos/Stanford-Online/notifier/issues/events{/number}","events_url":"https://api.github.com/repos/Stanford-Online/notifier/events","assignees_url":"https://api.github.com/repos/Stanford-Online/notifier/assignees{/user}","branches_url":"https://api.github.com/repos/Stanford-Online/notifier/branches{/branch}","tags_url":"https://api.github.com/repos/Stanford-Online/notifier/tags","blobs_url":"https://api.github.com/repos/Stanford-Online/notifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stanford-Online/notifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stanford-Online/notifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stanford-Online/notifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stanford-Online/notifier/statuses/{sha}","languages_url":"https://api.github.com/repos/Stanford-Online/notifier/languages","stargazers_url":"https://api.github.com/repos/Stanford-Online/notifier/stargazers","contributors_url":"https://api.github.com/repos/Stanford-Online/notifier/contributors","subscribers_url":"https://api.github.com/repos/Stanford-Online/notifier/subscribers","subscription_url":"https://api.github.com/repos/Stanford-Online/notifier/subscription","commits_url":"https://api.github.com/repos/Stanford-Online/notifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stanford-Online/notifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stanford-Online/notifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stanford-Online/notifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stanford-Online/notifier/contents/{+path}","compare_url":"https://api.github.com/repos/Stanford-Online/notifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stanford-Online/notifier/merges","archive_url":"https://api.github.com/repos/Stanford-Online/notifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stanford-Online/notifier/downloads","issues_url":"https://api.github.com/repos/Stanford-Online/notifier/issues{/number}","pulls_url":"https://api.github.com/repos/Stanford-Online/notifier/pulls{/number}","milestones_url":"https://api.github.com/repos/Stanford-Online/notifier/milestones{/number}","notifications_url":"https://api.github.com/repos/Stanford-Online/notifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stanford-Online/notifier/labels{/name}","releases_url":"https://api.github.com/repos/Stanford-Online/notifier/releases{/id}","deployments_url":"https://api.github.com/repos/Stanford-Online/notifier/deployments","created_at":"2014-06-17T20:09:03Z","updated_at":"2014-06-17T20:31:21Z","pushed_at":"2016-01-22T09:50:29Z","git_url":"git://github.com/Stanford-Online/notifier.git","ssh_url":"git@github.com:Stanford-Online/notifier.git","clone_url":"https://github.com/Stanford-Online/notifier.git","svn_url":"https://github.com/Stanford-Online/notifier","homepage":null,"size":213,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Stanford-Online/notifier/pulls/4"},"html":{"href":"https://github.com/Stanford-Online/notifier/pull/4"},"issue":{"href":"https://api.github.com/repos/Stanford-Online/notifier/issues/4"},"comments":{"href":"https://api.github.com/repos/Stanford-Online/notifier/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Stanford-Online/notifier/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Stanford-Online/notifier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Stanford-Online/notifier/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Stanford-Online/notifier/statuses/4fc0029bbc443d36d49a12b7d10ccf424ebb9b36"}}}}