{"action":"created","comment":{"url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/comments/172025381","pull_request_review_id":100983580,"id":172025381,"diff_hunk":"@@ -0,0 +1,27 @@\n+from django.test import TestCase, Client\n+from django.core.management import call_command\n+from django.conf import settings\n+\n+\n+class User_Views_Test(TestCase):\n+\n+    def setUp(self):\n+        \"\"\"\n+        Set up the app for following tests.\n+        \"\"\"\n+        settings.DEBUG = True\n+        settings.ADMIN_PASSWORD = '123'\n+        call_command('init_proj_config')\n+\n+    def test_project_config_view(self):\n+        response = self.client.get(\"/project-admin/\")\n+        self.assertRedirects(response, '/project-admin/login')\n+        self.assertEqual(response.status_code, 302)\n+\n+    def test_project_config_page_returns_correct_html(self):\n+        c = Client()\n+        response = c.post(\"/project-admin/login\", \n+        {'user': 'admin', 'password': '123'}, follow=True)\n+        self.assertContains(response, '<h1>Current Project Configuration</h1>', \n+        status_code=200)","path":"project_admin/tests/tests_views.py","position":26,"original_position":26,"commit_id":"769f4e6800232338b474fd0929601c6bf3cd4ee9","original_commit_id":"769f4e6800232338b474fd0929601c6bf3cd4ee9","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"continuation line under-indented for visual indent","created_at":"2018-03-03T19:00:33Z","updated_at":"2018-03-03T19:00:33Z","html_url":"https://github.com/gedankenstuecke/oh_data_uploader/pull/46#discussion_r172025381","pull_request_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/46","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/comments/172025381"},"html":{"href":"https://github.com/gedankenstuecke/oh_data_uploader/pull/46#discussion_r172025381"},"pull_request":{"href":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/46","id":172680939,"html_url":"https://github.com/gedankenstuecke/oh_data_uploader/pull/46","diff_url":"https://github.com/gedankenstuecke/oh_data_uploader/pull/46.diff","patch_url":"https://github.com/gedankenstuecke/oh_data_uploader/pull/46.patch","issue_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/issues/46","number":46,"state":"open","locked":false,"title":"Adds tests for Project-Config page","user":{"login":"manaswinidas","id":22885912,"avatar_url":"https://avatars0.githubusercontent.com/u/22885912?v=4","gravatar_id":"","url":"https://api.github.com/users/manaswinidas","html_url":"https://github.com/manaswinidas","followers_url":"https://api.github.com/users/manaswinidas/followers","following_url":"https://api.github.com/users/manaswinidas/following{/other_user}","gists_url":"https://api.github.com/users/manaswinidas/gists{/gist_id}","starred_url":"https://api.github.com/users/manaswinidas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manaswinidas/subscriptions","organizations_url":"https://api.github.com/users/manaswinidas/orgs","repos_url":"https://api.github.com/users/manaswinidas/repos","events_url":"https://api.github.com/users/manaswinidas/events{/privacy}","received_events_url":"https://api.github.com/users/manaswinidas/received_events","type":"User","site_admin":false},"body":"Adds tests for testing the view of Project-Config page","created_at":"2018-03-03T18:35:25Z","updated_at":"2018-03-03T19:00:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a26b93b50ed67dd1e1cc00515d1878f7a73e33f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/46/commits","review_comments_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/46/comments","review_comment_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/issues/46/comments","statuses_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/statuses/769f4e6800232338b474fd0929601c6bf3cd4ee9","head":{"label":"manaswinidas:test_config","ref":"test_config","sha":"769f4e6800232338b474fd0929601c6bf3cd4ee9","user":{"login":"manaswinidas","id":22885912,"avatar_url":"https://avatars0.githubusercontent.com/u/22885912?v=4","gravatar_id":"","url":"https://api.github.com/users/manaswinidas","html_url":"https://github.com/manaswinidas","followers_url":"https://api.github.com/users/manaswinidas/followers","following_url":"https://api.github.com/users/manaswinidas/following{/other_user}","gists_url":"https://api.github.com/users/manaswinidas/gists{/gist_id}","starred_url":"https://api.github.com/users/manaswinidas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manaswinidas/subscriptions","organizations_url":"https://api.github.com/users/manaswinidas/orgs","repos_url":"https://api.github.com/users/manaswinidas/repos","events_url":"https://api.github.com/users/manaswinidas/events{/privacy}","received_events_url":"https://api.github.com/users/manaswinidas/received_events","type":"User","site_admin":false},"repo":{"id":121835560,"name":"oh_data_uploader","full_name":"manaswinidas/oh_data_uploader","owner":{"login":"manaswinidas","id":22885912,"avatar_url":"https://avatars0.githubusercontent.com/u/22885912?v=4","gravatar_id":"","url":"https://api.github.com/users/manaswinidas","html_url":"https://github.com/manaswinidas","followers_url":"https://api.github.com/users/manaswinidas/followers","following_url":"https://api.github.com/users/manaswinidas/following{/other_user}","gists_url":"https://api.github.com/users/manaswinidas/gists{/gist_id}","starred_url":"https://api.github.com/users/manaswinidas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manaswinidas/subscriptions","organizations_url":"https://api.github.com/users/manaswinidas/orgs","repos_url":"https://api.github.com/users/manaswinidas/repos","events_url":"https://api.github.com/users/manaswinidas/events{/privacy}","received_events_url":"https://api.github.com/users/manaswinidas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manaswinidas/oh_data_uploader","description":"A simple to use template for uploading files to Open Humans","fork":true,"url":"https://api.github.com/repos/manaswinidas/oh_data_uploader","forks_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/forks","keys_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/teams","hooks_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/hooks","issue_events_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/issues/events{/number}","events_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/events","assignees_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/assignees{/user}","branches_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/branches{/branch}","tags_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/tags","blobs_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/languages","stargazers_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/stargazers","contributors_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/contributors","subscribers_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/subscribers","subscription_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/subscription","commits_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/contents/{+path}","compare_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/merges","archive_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/downloads","issues_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/issues{/number}","pulls_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/labels{/name}","releases_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/releases{/id}","deployments_url":"https://api.github.com/repos/manaswinidas/oh_data_uploader/deployments","created_at":"2018-02-17T07:18:56Z","updated_at":"2018-02-17T07:18:58Z","pushed_at":"2018-03-03T19:00:21Z","git_url":"git://github.com/manaswinidas/oh_data_uploader.git","ssh_url":"git@github.com:manaswinidas/oh_data_uploader.git","clone_url":"https://github.com/manaswinidas/oh_data_uploader.git","svn_url":"https://github.com/manaswinidas/oh_data_uploader","homepage":"","size":875,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gedankenstuecke:master","ref":"master","sha":"3113aa1eb6e29f651ac8a7edbd3b6000bf34dab4","user":{"login":"gedankenstuecke","id":674899,"avatar_url":"https://avatars1.githubusercontent.com/u/674899?v=4","gravatar_id":"","url":"https://api.github.com/users/gedankenstuecke","html_url":"https://github.com/gedankenstuecke","followers_url":"https://api.github.com/users/gedankenstuecke/followers","following_url":"https://api.github.com/users/gedankenstuecke/following{/other_user}","gists_url":"https://api.github.com/users/gedankenstuecke/gists{/gist_id}","starred_url":"https://api.github.com/users/gedankenstuecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gedankenstuecke/subscriptions","organizations_url":"https://api.github.com/users/gedankenstuecke/orgs","repos_url":"https://api.github.com/users/gedankenstuecke/repos","events_url":"https://api.github.com/users/gedankenstuecke/events{/privacy}","received_events_url":"https://api.github.com/users/gedankenstuecke/received_events","type":"User","site_admin":false},"repo":{"id":118163448,"name":"oh_data_uploader","full_name":"gedankenstuecke/oh_data_uploader","owner":{"login":"gedankenstuecke","id":674899,"avatar_url":"https://avatars1.githubusercontent.com/u/674899?v=4","gravatar_id":"","url":"https://api.github.com/users/gedankenstuecke","html_url":"https://github.com/gedankenstuecke","followers_url":"https://api.github.com/users/gedankenstuecke/followers","following_url":"https://api.github.com/users/gedankenstuecke/following{/other_user}","gists_url":"https://api.github.com/users/gedankenstuecke/gists{/gist_id}","starred_url":"https://api.github.com/users/gedankenstuecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gedankenstuecke/subscriptions","organizations_url":"https://api.github.com/users/gedankenstuecke/orgs","repos_url":"https://api.github.com/users/gedankenstuecke/repos","events_url":"https://api.github.com/users/gedankenstuecke/events{/privacy}","received_events_url":"https://api.github.com/users/gedankenstuecke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gedankenstuecke/oh_data_uploader","description":"A simple to use template for uploading files to Open Humans","fork":false,"url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader","forks_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/forks","keys_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/teams","hooks_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/hooks","issue_events_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/issues/events{/number}","events_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/events","assignees_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/assignees{/user}","branches_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/branches{/branch}","tags_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/tags","blobs_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/languages","stargazers_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/stargazers","contributors_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/contributors","subscribers_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/subscribers","subscription_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/subscription","commits_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/contents/{+path}","compare_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/merges","archive_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/downloads","issues_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/issues{/number}","pulls_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/labels{/name}","releases_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/releases{/id}","deployments_url":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/deployments","created_at":"2018-01-19T18:36:18Z","updated_at":"2018-02-28T16:04:18Z","pushed_at":"2018-03-03T19:00:22Z","git_url":"git://github.com/gedankenstuecke/oh_data_uploader.git","ssh_url":"git@github.com:gedankenstuecke/oh_data_uploader.git","clone_url":"https://github.com/gedankenstuecke/oh_data_uploader.git","svn_url":"https://github.com/gedankenstuecke/oh_data_uploader","homepage":"","size":870,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":9,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/46"},"html":{"href":"https://github.com/gedankenstuecke/oh_data_uploader/pull/46"},"issue":{"href":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/issues/46"},"comments":{"href":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/gedankenstuecke/oh_data_uploader/statuses/769f4e6800232338b474fd0929601c6bf3cd4ee9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}