{"action":"created","comment":{"url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/comments/59566701","id":59566701,"diff_hunk":"@@ -131,3 +150,81 @@ def test_time_entries_post_data_invalid(self, mock_func, mock_logger):\n                                         data=json.dumps(self.time_entry_data),\n                                         content_type='application/json')\n         self._verify_bad_request(resp, \"['Error']\")\n+\n+\n+class TimerEndpointTests(EndpointTests):\n+\n+    def setUp(self):\n+        super().setUp()\n+        user = UserFactory(username='test_user')\n+        self.worker = WorkerFactory(user=user)\n+        self.request_client = RequestClient()\n+        self.request_client.login(username=self.worker.user.username,\n+                                  password='defaultpassword')\n+        self.time = timezone.now()\n+\n+    @patch('orchestra.views.time_tracking.start_timer')\n+    def test_start_timer(self, mock_start):\n+        timer = TaskTimer(worker=self.worker, start_time=self.time)","path":"orchestra/tests/test_views.py","position":111,"original_position":111,"commit_id":"01811550ce392dc809137cfeabab96d6f91083b0","original_commit_id":"01811550ce392dc809137cfeabab96d6f91083b0","user":{"login":"lydiagu","id":630462,"avatar_url":"https://avatars.githubusercontent.com/u/630462?v=3","gravatar_id":"","url":"https://api.github.com/users/lydiagu","html_url":"https://github.com/lydiagu","followers_url":"https://api.github.com/users/lydiagu/followers","following_url":"https://api.github.com/users/lydiagu/following{/other_user}","gists_url":"https://api.github.com/users/lydiagu/gists{/gist_id}","starred_url":"https://api.github.com/users/lydiagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lydiagu/subscriptions","organizations_url":"https://api.github.com/users/lydiagu/orgs","repos_url":"https://api.github.com/users/lydiagu/repos","events_url":"https://api.github.com/users/lydiagu/events{/privacy}","received_events_url":"https://api.github.com/users/lydiagu/received_events","type":"User","site_admin":false},"body":"I'm mocking start_timer. timer is the return value of the mock","created_at":"2016-04-13T15:14:14Z","updated_at":"2016-04-13T15:14:14Z","html_url":"https://github.com/unlimitedlabs/orchestra/pull/169#discussion_r59566701","pull_request_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/169","_links":{"self":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/comments/59566701"},"html":{"href":"https://github.com/unlimitedlabs/orchestra/pull/169#discussion_r59566701"},"pull_request":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/169","id":66242408,"html_url":"https://github.com/unlimitedlabs/orchestra/pull/169","diff_url":"https://github.com/unlimitedlabs/orchestra/pull/169.diff","patch_url":"https://github.com/unlimitedlabs/orchestra/pull/169.patch","issue_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/169","number":169,"state":"open","locked":false,"title":"Timer endpoints","user":{"login":"lydiagu","id":630462,"avatar_url":"https://avatars.githubusercontent.com/u/630462?v=3","gravatar_id":"","url":"https://api.github.com/users/lydiagu","html_url":"https://github.com/lydiagu","followers_url":"https://api.github.com/users/lydiagu/followers","following_url":"https://api.github.com/users/lydiagu/following{/other_user}","gists_url":"https://api.github.com/users/lydiagu/gists{/gist_id}","starred_url":"https://api.github.com/users/lydiagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lydiagu/subscriptions","organizations_url":"https://api.github.com/users/lydiagu/orgs","repos_url":"https://api.github.com/users/lydiagu/repos","events_url":"https://api.github.com/users/lydiagu/events{/privacy}","received_events_url":"https://api.github.com/users/lydiagu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-12T23:04:23Z","updated_at":"2016-04-13T15:14:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a146a82360572ceb8e7c8e352be56deffe0ea87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/169/commits","review_comments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/169/comments","review_comment_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/169/comments","statuses_url":"https://api.github.com/repos/unlimitedlabs/orchestra/statuses/01811550ce392dc809137cfeabab96d6f91083b0","head":{"label":"unlimitedlabs:timer-endpoints","ref":"timer-endpoints","sha":"01811550ce392dc809137cfeabab96d6f91083b0","user":{"login":"unlimitedlabs","id":12401025,"avatar_url":"https://avatars.githubusercontent.com/u/12401025?v=3","gravatar_id":"","url":"https://api.github.com/users/unlimitedlabs","html_url":"https://github.com/unlimitedlabs","followers_url":"https://api.github.com/users/unlimitedlabs/followers","following_url":"https://api.github.com/users/unlimitedlabs/following{/other_user}","gists_url":"https://api.github.com/users/unlimitedlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/unlimitedlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlimitedlabs/subscriptions","organizations_url":"https://api.github.com/users/unlimitedlabs/orgs","repos_url":"https://api.github.com/users/unlimitedlabs/repos","events_url":"https://api.github.com/users/unlimitedlabs/events{/privacy}","received_events_url":"https://api.github.com/users/unlimitedlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":42593972,"name":"orchestra","full_name":"unlimitedlabs/orchestra","owner":{"login":"unlimitedlabs","id":12401025,"avatar_url":"https://avatars.githubusercontent.com/u/12401025?v=3","gravatar_id":"","url":"https://api.github.com/users/unlimitedlabs","html_url":"https://github.com/unlimitedlabs","followers_url":"https://api.github.com/users/unlimitedlabs/followers","following_url":"https://api.github.com/users/unlimitedlabs/following{/other_user}","gists_url":"https://api.github.com/users/unlimitedlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/unlimitedlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlimitedlabs/subscriptions","organizations_url":"https://api.github.com/users/unlimitedlabs/orgs","repos_url":"https://api.github.com/users/unlimitedlabs/repos","events_url":"https://api.github.com/users/unlimitedlabs/events{/privacy}","received_events_url":"https://api.github.com/users/unlimitedlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unlimitedlabs/orchestra","description":"Orchestra is a system for orchestrating project teams of experts and machines.","fork":false,"url":"https://api.github.com/repos/unlimitedlabs/orchestra","forks_url":"https://api.github.com/repos/unlimitedlabs/orchestra/forks","keys_url":"https://api.github.com/repos/unlimitedlabs/orchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unlimitedlabs/orchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unlimitedlabs/orchestra/teams","hooks_url":"https://api.github.com/repos/unlimitedlabs/orchestra/hooks","issue_events_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/events{/number}","events_url":"https://api.github.com/repos/unlimitedlabs/orchestra/events","assignees_url":"https://api.github.com/repos/unlimitedlabs/orchestra/assignees{/user}","branches_url":"https://api.github.com/repos/unlimitedlabs/orchestra/branches{/branch}","tags_url":"https://api.github.com/repos/unlimitedlabs/orchestra/tags","blobs_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unlimitedlabs/orchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/unlimitedlabs/orchestra/languages","stargazers_url":"https://api.github.com/repos/unlimitedlabs/orchestra/stargazers","contributors_url":"https://api.github.com/repos/unlimitedlabs/orchestra/contributors","subscribers_url":"https://api.github.com/repos/unlimitedlabs/orchestra/subscribers","subscription_url":"https://api.github.com/repos/unlimitedlabs/orchestra/subscription","commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/unlimitedlabs/orchestra/contents/{+path}","compare_url":"https://api.github.com/repos/unlimitedlabs/orchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unlimitedlabs/orchestra/merges","archive_url":"https://api.github.com/repos/unlimitedlabs/orchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unlimitedlabs/orchestra/downloads","issues_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues{/number}","pulls_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/unlimitedlabs/orchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/unlimitedlabs/orchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unlimitedlabs/orchestra/labels{/name}","releases_url":"https://api.github.com/repos/unlimitedlabs/orchestra/releases{/id}","deployments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/deployments","created_at":"2015-09-16T14:55:16Z","updated_at":"2016-04-04T17:19:02Z","pushed_at":"2016-04-13T15:11:32Z","git_url":"git://github.com/unlimitedlabs/orchestra.git","ssh_url":"git@github.com:unlimitedlabs/orchestra.git","clone_url":"https://github.com/unlimitedlabs/orchestra.git","svn_url":"https://github.com/unlimitedlabs/orchestra","homepage":"http://orchestra.unlimitedlabs.com/","size":6811,"stargazers_count":220,"watchers_count":220,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":37,"forks":15,"open_issues":37,"watchers":220,"default_branch":"master"}},"base":{"label":"unlimitedlabs:master","ref":"master","sha":"be61c8b6f1091cd8941aa9b1b4666d5fa0df7460","user":{"login":"unlimitedlabs","id":12401025,"avatar_url":"https://avatars.githubusercontent.com/u/12401025?v=3","gravatar_id":"","url":"https://api.github.com/users/unlimitedlabs","html_url":"https://github.com/unlimitedlabs","followers_url":"https://api.github.com/users/unlimitedlabs/followers","following_url":"https://api.github.com/users/unlimitedlabs/following{/other_user}","gists_url":"https://api.github.com/users/unlimitedlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/unlimitedlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlimitedlabs/subscriptions","organizations_url":"https://api.github.com/users/unlimitedlabs/orgs","repos_url":"https://api.github.com/users/unlimitedlabs/repos","events_url":"https://api.github.com/users/unlimitedlabs/events{/privacy}","received_events_url":"https://api.github.com/users/unlimitedlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":42593972,"name":"orchestra","full_name":"unlimitedlabs/orchestra","owner":{"login":"unlimitedlabs","id":12401025,"avatar_url":"https://avatars.githubusercontent.com/u/12401025?v=3","gravatar_id":"","url":"https://api.github.com/users/unlimitedlabs","html_url":"https://github.com/unlimitedlabs","followers_url":"https://api.github.com/users/unlimitedlabs/followers","following_url":"https://api.github.com/users/unlimitedlabs/following{/other_user}","gists_url":"https://api.github.com/users/unlimitedlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/unlimitedlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlimitedlabs/subscriptions","organizations_url":"https://api.github.com/users/unlimitedlabs/orgs","repos_url":"https://api.github.com/users/unlimitedlabs/repos","events_url":"https://api.github.com/users/unlimitedlabs/events{/privacy}","received_events_url":"https://api.github.com/users/unlimitedlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unlimitedlabs/orchestra","description":"Orchestra is a system for orchestrating project teams of experts and machines.","fork":false,"url":"https://api.github.com/repos/unlimitedlabs/orchestra","forks_url":"https://api.github.com/repos/unlimitedlabs/orchestra/forks","keys_url":"https://api.github.com/repos/unlimitedlabs/orchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unlimitedlabs/orchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unlimitedlabs/orchestra/teams","hooks_url":"https://api.github.com/repos/unlimitedlabs/orchestra/hooks","issue_events_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/events{/number}","events_url":"https://api.github.com/repos/unlimitedlabs/orchestra/events","assignees_url":"https://api.github.com/repos/unlimitedlabs/orchestra/assignees{/user}","branches_url":"https://api.github.com/repos/unlimitedlabs/orchestra/branches{/branch}","tags_url":"https://api.github.com/repos/unlimitedlabs/orchestra/tags","blobs_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unlimitedlabs/orchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/unlimitedlabs/orchestra/languages","stargazers_url":"https://api.github.com/repos/unlimitedlabs/orchestra/stargazers","contributors_url":"https://api.github.com/repos/unlimitedlabs/orchestra/contributors","subscribers_url":"https://api.github.com/repos/unlimitedlabs/orchestra/subscribers","subscription_url":"https://api.github.com/repos/unlimitedlabs/orchestra/subscription","commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/unlimitedlabs/orchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/unlimitedlabs/orchestra/contents/{+path}","compare_url":"https://api.github.com/repos/unlimitedlabs/orchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unlimitedlabs/orchestra/merges","archive_url":"https://api.github.com/repos/unlimitedlabs/orchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unlimitedlabs/orchestra/downloads","issues_url":"https://api.github.com/repos/unlimitedlabs/orchestra/issues{/number}","pulls_url":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/unlimitedlabs/orchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/unlimitedlabs/orchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unlimitedlabs/orchestra/labels{/name}","releases_url":"https://api.github.com/repos/unlimitedlabs/orchestra/releases{/id}","deployments_url":"https://api.github.com/repos/unlimitedlabs/orchestra/deployments","created_at":"2015-09-16T14:55:16Z","updated_at":"2016-04-04T17:19:02Z","pushed_at":"2016-04-13T15:11:32Z","git_url":"git://github.com/unlimitedlabs/orchestra.git","ssh_url":"git@github.com:unlimitedlabs/orchestra.git","clone_url":"https://github.com/unlimitedlabs/orchestra.git","svn_url":"https://github.com/unlimitedlabs/orchestra","homepage":"http://orchestra.unlimitedlabs.com/","size":6811,"stargazers_count":220,"watchers_count":220,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":37,"forks":15,"open_issues":37,"watchers":220,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/169"},"html":{"href":"https://github.com/unlimitedlabs/orchestra/pull/169"},"issue":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/169"},"comments":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/unlimitedlabs/orchestra/statuses/01811550ce392dc809137cfeabab96d6f91083b0"}}}}