{"action":"created","comment":{"url":"https://api.github.com/repos/Psywerx/psywerx/pulls/comments/201876243","pull_request_review_id":136463349,"id":201876243,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTg3NjI0Mw==","diff_hunk":"@@ -21,3 +21,32 @@ def test_basic_addition(self):\n True\n \"\"\"}\n \n+class WebViewTests(TestCase):\n+    def test_loads_correctly(self):\n+        \"\"\"\n+        Tests that the homepage loads correctly\n+        \"\"\"\n+        response = self.client.get('')\n+        self.assertEqual(response.status_code, 200)\n+\n+    def test_basic_html(self):\n+        \"\"\"\n+        Tests that the title attribute is set to 'Psywerx', the page contains an element\n+        with the class jumbatron, contains no empty paragraphs and that charset is utf-8\n+        \"\"\"    \n+        response = self.client.get('')\n+        html_no_space = response.content.replace(\" \", \"\")\n+        \n+        self.assertIn('<title>Psywerx</title>', html_no_space)\n+\n+        has_jumbatron = False\n+        if 'class=\"jumbotron\"' in html_no_space or \"class='jumbotron'\" in html_no_space:\n+            has_jumbatron = True\n+        self.assertIs(has_jumbatron, True)\n+\n+        self.assertNotIn(r'<p>(\\n*)</p>', html_no_space)\n+        \n+        has_utf = False\n+        if \"charset='utf-8'\" in html_no_space or 'charset=\"utf-8\"' in html_no_space:","path":"web/tests.py","position":30,"original_position":30,"commit_id":"72abcee48b6d3d2ebf5acc809754c3840f8d0e9b","original_commit_id":"72abcee48b6d3d2ebf5acc809754c3840f8d0e9b","user":{"login":"Smotko","id":513444,"node_id":"MDQ6VXNlcjUxMzQ0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/513444?v=4","gravatar_id":"","url":"https://api.github.com/users/Smotko","html_url":"https://github.com/Smotko","followers_url":"https://api.github.com/users/Smotko/followers","following_url":"https://api.github.com/users/Smotko/following{/other_user}","gists_url":"https://api.github.com/users/Smotko/gists{/gist_id}","starred_url":"https://api.github.com/users/Smotko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smotko/subscriptions","organizations_url":"https://api.github.com/users/Smotko/orgs","repos_url":"https://api.github.com/users/Smotko/repos","events_url":"https://api.github.com/users/Smotko/events{/privacy}","received_events_url":"https://api.github.com/users/Smotko/received_events","type":"User","site_admin":false},"body":"Podoben komentar kot zgoraj za jumbotron.","created_at":"2018-07-12T00:09:11Z","updated_at":"2018-07-12T00:11:29Z","html_url":"https://github.com/Psywerx/psywerx/pull/5#discussion_r201876243","pull_request_url":"https://api.github.com/repos/Psywerx/psywerx/pulls/5","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Psywerx/psywerx/pulls/comments/201876243"},"html":{"href":"https://github.com/Psywerx/psywerx/pull/5#discussion_r201876243"},"pull_request":{"href":"https://api.github.com/repos/Psywerx/psywerx/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Psywerx/psywerx/pulls/5","id":200343414,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMzQzNDE0","html_url":"https://github.com/Psywerx/psywerx/pull/5","diff_url":"https://github.com/Psywerx/psywerx/pull/5.diff","patch_url":"https://github.com/Psywerx/psywerx/pull/5.patch","issue_url":"https://api.github.com/repos/Psywerx/psywerx/issues/5","number":5,"state":"open","locked":false,"title":"django tests","user":{"login":"baloncek2662","id":34426197,"node_id":"MDQ6VXNlcjM0NDI2MTk3","avatar_url":"https://avatars1.githubusercontent.com/u/34426197?v=4","gravatar_id":"","url":"https://api.github.com/users/baloncek2662","html_url":"https://github.com/baloncek2662","followers_url":"https://api.github.com/users/baloncek2662/followers","following_url":"https://api.github.com/users/baloncek2662/following{/other_user}","gists_url":"https://api.github.com/users/baloncek2662/gists{/gist_id}","starred_url":"https://api.github.com/users/baloncek2662/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baloncek2662/subscriptions","organizations_url":"https://api.github.com/users/baloncek2662/orgs","repos_url":"https://api.github.com/users/baloncek2662/repos","events_url":"https://api.github.com/users/baloncek2662/events{/privacy}","received_events_url":"https://api.github.com/users/baloncek2662/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-10T10:01:47Z","updated_at":"2018-07-12T00:11:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"307e5b36c637508e55c39e09a2622defd7efd192","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Psywerx/psywerx/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Psywerx/psywerx/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Psywerx/psywerx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Psywerx/psywerx/issues/5/comments","statuses_url":"https://api.github.com/repos/Psywerx/psywerx/statuses/72abcee48b6d3d2ebf5acc809754c3840f8d0e9b","head":{"label":"baloncek2662:master","ref":"master","sha":"72abcee48b6d3d2ebf5acc809754c3840f8d0e9b","user":{"login":"baloncek2662","id":34426197,"node_id":"MDQ6VXNlcjM0NDI2MTk3","avatar_url":"https://avatars1.githubusercontent.com/u/34426197?v=4","gravatar_id":"","url":"https://api.github.com/users/baloncek2662","html_url":"https://github.com/baloncek2662","followers_url":"https://api.github.com/users/baloncek2662/followers","following_url":"https://api.github.com/users/baloncek2662/following{/other_user}","gists_url":"https://api.github.com/users/baloncek2662/gists{/gist_id}","starred_url":"https://api.github.com/users/baloncek2662/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baloncek2662/subscriptions","organizations_url":"https://api.github.com/users/baloncek2662/orgs","repos_url":"https://api.github.com/users/baloncek2662/repos","events_url":"https://api.github.com/users/baloncek2662/events{/privacy}","received_events_url":"https://api.github.com/users/baloncek2662/received_events","type":"User","site_admin":false},"repo":{"id":138332937,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgzMzI5Mzc=","name":"psywerx","full_name":"baloncek2662/psywerx","owner":{"login":"baloncek2662","id":34426197,"node_id":"MDQ6VXNlcjM0NDI2MTk3","avatar_url":"https://avatars1.githubusercontent.com/u/34426197?v=4","gravatar_id":"","url":"https://api.github.com/users/baloncek2662","html_url":"https://github.com/baloncek2662","followers_url":"https://api.github.com/users/baloncek2662/followers","following_url":"https://api.github.com/users/baloncek2662/following{/other_user}","gists_url":"https://api.github.com/users/baloncek2662/gists{/gist_id}","starred_url":"https://api.github.com/users/baloncek2662/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baloncek2662/subscriptions","organizations_url":"https://api.github.com/users/baloncek2662/orgs","repos_url":"https://api.github.com/users/baloncek2662/repos","events_url":"https://api.github.com/users/baloncek2662/events{/privacy}","received_events_url":"https://api.github.com/users/baloncek2662/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/baloncek2662/psywerx","description":"A horribly outdated site.","fork":true,"url":"https://api.github.com/repos/baloncek2662/psywerx","forks_url":"https://api.github.com/repos/baloncek2662/psywerx/forks","keys_url":"https://api.github.com/repos/baloncek2662/psywerx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baloncek2662/psywerx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baloncek2662/psywerx/teams","hooks_url":"https://api.github.com/repos/baloncek2662/psywerx/hooks","issue_events_url":"https://api.github.com/repos/baloncek2662/psywerx/issues/events{/number}","events_url":"https://api.github.com/repos/baloncek2662/psywerx/events","assignees_url":"https://api.github.com/repos/baloncek2662/psywerx/assignees{/user}","branches_url":"https://api.github.com/repos/baloncek2662/psywerx/branches{/branch}","tags_url":"https://api.github.com/repos/baloncek2662/psywerx/tags","blobs_url":"https://api.github.com/repos/baloncek2662/psywerx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baloncek2662/psywerx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baloncek2662/psywerx/git/refs{/sha}","trees_url":"https://api.github.com/repos/baloncek2662/psywerx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baloncek2662/psywerx/statuses/{sha}","languages_url":"https://api.github.com/repos/baloncek2662/psywerx/languages","stargazers_url":"https://api.github.com/repos/baloncek2662/psywerx/stargazers","contributors_url":"https://api.github.com/repos/baloncek2662/psywerx/contributors","subscribers_url":"https://api.github.com/repos/baloncek2662/psywerx/subscribers","subscription_url":"https://api.github.com/repos/baloncek2662/psywerx/subscription","commits_url":"https://api.github.com/repos/baloncek2662/psywerx/commits{/sha}","git_commits_url":"https://api.github.com/repos/baloncek2662/psywerx/git/commits{/sha}","comments_url":"https://api.github.com/repos/baloncek2662/psywerx/comments{/number}","issue_comment_url":"https://api.github.com/repos/baloncek2662/psywerx/issues/comments{/number}","contents_url":"https://api.github.com/repos/baloncek2662/psywerx/contents/{+path}","compare_url":"https://api.github.com/repos/baloncek2662/psywerx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baloncek2662/psywerx/merges","archive_url":"https://api.github.com/repos/baloncek2662/psywerx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baloncek2662/psywerx/downloads","issues_url":"https://api.github.com/repos/baloncek2662/psywerx/issues{/number}","pulls_url":"https://api.github.com/repos/baloncek2662/psywerx/pulls{/number}","milestones_url":"https://api.github.com/repos/baloncek2662/psywerx/milestones{/number}","notifications_url":"https://api.github.com/repos/baloncek2662/psywerx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baloncek2662/psywerx/labels{/name}","releases_url":"https://api.github.com/repos/baloncek2662/psywerx/releases{/id}","deployments_url":"https://api.github.com/repos/baloncek2662/psywerx/deployments","created_at":"2018-06-22T17:59:25Z","updated_at":"2018-07-11T13:04:58Z","pushed_at":"2018-07-11T13:04:56Z","git_url":"git://github.com/baloncek2662/psywerx.git","ssh_url":"git@github.com:baloncek2662/psywerx.git","clone_url":"https://github.com/baloncek2662/psywerx.git","svn_url":"https://github.com/baloncek2662/psywerx","homepage":"","size":291,"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":"Psywerx:master","ref":"master","sha":"c4bfdf9d7bf30064312fe67d65dc90491b6f7334","user":{"login":"Psywerx","id":662251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2MjI1MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/662251?v=4","gravatar_id":"","url":"https://api.github.com/users/Psywerx","html_url":"https://github.com/Psywerx","followers_url":"https://api.github.com/users/Psywerx/followers","following_url":"https://api.github.com/users/Psywerx/following{/other_user}","gists_url":"https://api.github.com/users/Psywerx/gists{/gist_id}","starred_url":"https://api.github.com/users/Psywerx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Psywerx/subscriptions","organizations_url":"https://api.github.com/users/Psywerx/orgs","repos_url":"https://api.github.com/users/Psywerx/repos","events_url":"https://api.github.com/users/Psywerx/events{/privacy}","received_events_url":"https://api.github.com/users/Psywerx/received_events","type":"Organization","site_admin":false},"repo":{"id":1264816,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY0ODE2","name":"psywerx","full_name":"Psywerx/psywerx","owner":{"login":"Psywerx","id":662251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2MjI1MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/662251?v=4","gravatar_id":"","url":"https://api.github.com/users/Psywerx","html_url":"https://github.com/Psywerx","followers_url":"https://api.github.com/users/Psywerx/followers","following_url":"https://api.github.com/users/Psywerx/following{/other_user}","gists_url":"https://api.github.com/users/Psywerx/gists{/gist_id}","starred_url":"https://api.github.com/users/Psywerx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Psywerx/subscriptions","organizations_url":"https://api.github.com/users/Psywerx/orgs","repos_url":"https://api.github.com/users/Psywerx/repos","events_url":"https://api.github.com/users/Psywerx/events{/privacy}","received_events_url":"https://api.github.com/users/Psywerx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Psywerx/psywerx","description":"A horribly outdated site.","fork":false,"url":"https://api.github.com/repos/Psywerx/psywerx","forks_url":"https://api.github.com/repos/Psywerx/psywerx/forks","keys_url":"https://api.github.com/repos/Psywerx/psywerx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Psywerx/psywerx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Psywerx/psywerx/teams","hooks_url":"https://api.github.com/repos/Psywerx/psywerx/hooks","issue_events_url":"https://api.github.com/repos/Psywerx/psywerx/issues/events{/number}","events_url":"https://api.github.com/repos/Psywerx/psywerx/events","assignees_url":"https://api.github.com/repos/Psywerx/psywerx/assignees{/user}","branches_url":"https://api.github.com/repos/Psywerx/psywerx/branches{/branch}","tags_url":"https://api.github.com/repos/Psywerx/psywerx/tags","blobs_url":"https://api.github.com/repos/Psywerx/psywerx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Psywerx/psywerx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Psywerx/psywerx/git/refs{/sha}","trees_url":"https://api.github.com/repos/Psywerx/psywerx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Psywerx/psywerx/statuses/{sha}","languages_url":"https://api.github.com/repos/Psywerx/psywerx/languages","stargazers_url":"https://api.github.com/repos/Psywerx/psywerx/stargazers","contributors_url":"https://api.github.com/repos/Psywerx/psywerx/contributors","subscribers_url":"https://api.github.com/repos/Psywerx/psywerx/subscribers","subscription_url":"https://api.github.com/repos/Psywerx/psywerx/subscription","commits_url":"https://api.github.com/repos/Psywerx/psywerx/commits{/sha}","git_commits_url":"https://api.github.com/repos/Psywerx/psywerx/git/commits{/sha}","comments_url":"https://api.github.com/repos/Psywerx/psywerx/comments{/number}","issue_comment_url":"https://api.github.com/repos/Psywerx/psywerx/issues/comments{/number}","contents_url":"https://api.github.com/repos/Psywerx/psywerx/contents/{+path}","compare_url":"https://api.github.com/repos/Psywerx/psywerx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Psywerx/psywerx/merges","archive_url":"https://api.github.com/repos/Psywerx/psywerx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Psywerx/psywerx/downloads","issues_url":"https://api.github.com/repos/Psywerx/psywerx/issues{/number}","pulls_url":"https://api.github.com/repos/Psywerx/psywerx/pulls{/number}","milestones_url":"https://api.github.com/repos/Psywerx/psywerx/milestones{/number}","notifications_url":"https://api.github.com/repos/Psywerx/psywerx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Psywerx/psywerx/labels{/name}","releases_url":"https://api.github.com/repos/Psywerx/psywerx/releases{/id}","deployments_url":"https://api.github.com/repos/Psywerx/psywerx/deployments","created_at":"2011-01-17T20:57:40Z","updated_at":"2018-07-04T14:44:42Z","pushed_at":"2018-07-11T13:04:57Z","git_url":"git://github.com/Psywerx/psywerx.git","ssh_url":"git@github.com:Psywerx/psywerx.git","clone_url":"https://github.com/Psywerx/psywerx.git","svn_url":"https://github.com/Psywerx/psywerx","homepage":"","size":282,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Psywerx/psywerx/pulls/5"},"html":{"href":"https://github.com/Psywerx/psywerx/pull/5"},"issue":{"href":"https://api.github.com/repos/Psywerx/psywerx/issues/5"},"comments":{"href":"https://api.github.com/repos/Psywerx/psywerx/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Psywerx/psywerx/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Psywerx/psywerx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Psywerx/psywerx/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Psywerx/psywerx/statuses/72abcee48b6d3d2ebf5acc809754c3840f8d0e9b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Smotko"}}