{"action":"created","comment":{"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/comments/38727889","id":38727889,"diff_hunk":"@@ -51,7 +53,33 @@ def test_api_users(self):\n         self.assertEqual(resp.content_type, 'application/json')\n         data = json.loads(resp.data)\n         self.assertEqual(len(data), 2)\n-        self.assertDictEqual(data[0], {u'user_id': 10, u'name': u'User 10'})\n+        self.assertDictEqual(data[0], {'user_id': 10, 'name': 'User 10'})\n+\n+    def test_api_start_end_retun_404(self):\n+        \"\"\"\n+        Test mean start and end presence return 404 if can't find user data.\n+        \"\"\"\n+        resp = self.client.get(\"/api/v1/presence_start_end_per_weekday/0\")","path":"src/presence_analyzer/tests.py","position":20,"original_position":20,"commit_id":"8f299bddbb5d2290e61c23b548ce0b2c60de7d3a","original_commit_id":"8f299bddbb5d2290e61c23b548ce0b2c60de7d3a","user":{"login":"mjelonek92","id":7791528,"avatar_url":"https://avatars.githubusercontent.com/u/7791528?v=3","gravatar_id":"","url":"https://api.github.com/users/mjelonek92","html_url":"https://github.com/mjelonek92","followers_url":"https://api.github.com/users/mjelonek92/followers","following_url":"https://api.github.com/users/mjelonek92/following{/other_user}","gists_url":"https://api.github.com/users/mjelonek92/gists{/gist_id}","starred_url":"https://api.github.com/users/mjelonek92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjelonek92/subscriptions","organizations_url":"https://api.github.com/users/mjelonek92/orgs","repos_url":"https://api.github.com/users/mjelonek92/repos","events_url":"https://api.github.com/users/mjelonek92/events{/privacy}","received_events_url":"https://api.github.com/users/mjelonek92/received_events","type":"User","site_admin":false},"body":"I'm against mixing `'` and `\"`. Choose one and use it everywhere, so it's consistent in the whole project.","created_at":"2015-09-04T07:37:38Z","updated_at":"2015-09-04T07:37:38Z","html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-mslowinski/pull/2#discussion_r38727889","pull_request_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/comments/38727889"},"html":{"href":"https://github.com/stxnext-kindergarten/presence-analyzer-mslowinski/pull/2#discussion_r38727889"},"pull_request":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/2","id":44092260,"html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-mslowinski/pull/2","diff_url":"https://github.com/stxnext-kindergarten/presence-analyzer-mslowinski/pull/2.diff","patch_url":"https://github.com/stxnext-kindergarten/presence-analyzer-mslowinski/pull/2.patch","issue_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/issues/2","number":2,"state":"open","locked":false,"title":"[6188] Add presence start-end function.  ","user":{"login":"mars22","id":456634,"avatar_url":"https://avatars.githubusercontent.com/u/456634?v=3","gravatar_id":"","url":"https://api.github.com/users/mars22","html_url":"https://github.com/mars22","followers_url":"https://api.github.com/users/mars22/followers","following_url":"https://api.github.com/users/mars22/following{/other_user}","gists_url":"https://api.github.com/users/mars22/gists{/gist_id}","starred_url":"https://api.github.com/users/mars22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mars22/subscriptions","organizations_url":"https://api.github.com/users/mars22/orgs","repos_url":"https://api.github.com/users/mars22/repos","events_url":"https://api.github.com/users/mars22/events{/privacy}","received_events_url":"https://api.github.com/users/mars22/received_events","type":"User","site_admin":false},"body":"[6188] Add presence start-end function.\r\n1.new screen added to app\r\n2.backend endpoint for this screen\r\n\r\nhttps://bugzilla.stxnext.pl/show_bug.cgi?id=6188","created_at":"2015-09-03T10:44:35Z","updated_at":"2015-09-04T07:37:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db57e8c4c673e561082e844ef5e3af3439be1726","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/2/commits","review_comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/2/comments","review_comment_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/issues/2/comments","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/statuses/8f299bddbb5d2290e61c23b548ce0b2c60de7d3a","head":{"label":"mars22:bug_6188","ref":"bug_6188","sha":"8f299bddbb5d2290e61c23b548ce0b2c60de7d3a","user":{"login":"mars22","id":456634,"avatar_url":"https://avatars.githubusercontent.com/u/456634?v=3","gravatar_id":"","url":"https://api.github.com/users/mars22","html_url":"https://github.com/mars22","followers_url":"https://api.github.com/users/mars22/followers","following_url":"https://api.github.com/users/mars22/following{/other_user}","gists_url":"https://api.github.com/users/mars22/gists{/gist_id}","starred_url":"https://api.github.com/users/mars22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mars22/subscriptions","organizations_url":"https://api.github.com/users/mars22/orgs","repos_url":"https://api.github.com/users/mars22/repos","events_url":"https://api.github.com/users/mars22/events{/privacy}","received_events_url":"https://api.github.com/users/mars22/received_events","type":"User","site_admin":false},"repo":{"id":41801509,"name":"presence-analyzer-mslowinski","full_name":"mars22/presence-analyzer-mslowinski","owner":{"login":"mars22","id":456634,"avatar_url":"https://avatars.githubusercontent.com/u/456634?v=3","gravatar_id":"","url":"https://api.github.com/users/mars22","html_url":"https://github.com/mars22","followers_url":"https://api.github.com/users/mars22/followers","following_url":"https://api.github.com/users/mars22/following{/other_user}","gists_url":"https://api.github.com/users/mars22/gists{/gist_id}","starred_url":"https://api.github.com/users/mars22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mars22/subscriptions","organizations_url":"https://api.github.com/users/mars22/orgs","repos_url":"https://api.github.com/users/mars22/repos","events_url":"https://api.github.com/users/mars22/events{/privacy}","received_events_url":"https://api.github.com/users/mars22/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mars22/presence-analyzer-mslowinski","description":"","fork":true,"url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski","forks_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/forks","keys_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/teams","hooks_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/hooks","issue_events_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/issues/events{/number}","events_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/events","assignees_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/assignees{/user}","branches_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/branches{/branch}","tags_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/tags","blobs_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/git/refs{/sha}","trees_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/statuses/{sha}","languages_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/languages","stargazers_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/stargazers","contributors_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/contributors","subscribers_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/subscribers","subscription_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/subscription","commits_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/commits{/sha}","git_commits_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/git/commits{/sha}","comments_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/comments{/number}","issue_comment_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/issues/comments{/number}","contents_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/contents/{+path}","compare_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/merges","archive_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/downloads","issues_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/issues{/number}","pulls_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/pulls{/number}","milestones_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/milestones{/number}","notifications_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/labels{/name}","releases_url":"https://api.github.com/repos/mars22/presence-analyzer-mslowinski/releases{/id}","created_at":"2015-09-02T13:07:02Z","updated_at":"2015-09-02T13:07:02Z","pushed_at":"2015-09-04T07:16:35Z","git_url":"git://github.com/mars22/presence-analyzer-mslowinski.git","ssh_url":"git@github.com:mars22/presence-analyzer-mslowinski.git","clone_url":"https://github.com/mars22/presence-analyzer-mslowinski.git","svn_url":"https://github.com/mars22/presence-analyzer-mslowinski","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stxnext-kindergarten:master","ref":"master","sha":"422da526c212c22f84e5efc3cfeef0f85faf45e4","user":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"repo":{"id":41796542,"name":"presence-analyzer-mslowinski","full_name":"stxnext-kindergarten/presence-analyzer-mslowinski","owner":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-mslowinski","description":"","fork":false,"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski","forks_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/forks","keys_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/teams","hooks_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/hooks","issue_events_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/issues/events{/number}","events_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/events","assignees_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/assignees{/user}","branches_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/branches{/branch}","tags_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/tags","blobs_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/git/refs{/sha}","trees_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/statuses/{sha}","languages_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/languages","stargazers_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/stargazers","contributors_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/contributors","subscribers_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/subscribers","subscription_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/subscription","commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/commits{/sha}","git_commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/git/commits{/sha}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/comments{/number}","issue_comment_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/issues/comments{/number}","contents_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/contents/{+path}","compare_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/merges","archive_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/downloads","issues_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/issues{/number}","pulls_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls{/number}","milestones_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/milestones{/number}","notifications_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/labels{/name}","releases_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/releases{/id}","created_at":"2015-09-02T11:06:01Z","updated_at":"2015-09-02T11:08:08Z","pushed_at":"2015-09-04T07:16:36Z","git_url":"git://github.com/stxnext-kindergarten/presence-analyzer-mslowinski.git","ssh_url":"git@github.com:stxnext-kindergarten/presence-analyzer-mslowinski.git","clone_url":"https://github.com/stxnext-kindergarten/presence-analyzer-mslowinski.git","svn_url":"https://github.com/stxnext-kindergarten/presence-analyzer-mslowinski","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/2"},"html":{"href":"https://github.com/stxnext-kindergarten/presence-analyzer-mslowinski/pull/2"},"issue":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/issues/2"},"comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-mslowinski/statuses/8f299bddbb5d2290e61c23b548ce0b2c60de7d3a"}}}}