{"action":"created","comment":{"url":"https://api.github.com/repos/osuosl/pymesync/pulls/comments/49662628","id":49662628,"diff_hunk":"@@ -1493,6 +1547,43 @@ def test_update_time(self, mock_create_or_update):\n                                                  \"times\", False)\n \n     @patch(\"pymesync.TimeSync._create_or_update\")\n+    def test_create_time_with_string_duration(self, mock_create_or_update):\n+        \"\"\"Tests that TimeSync._create_time will convert a string duration to\n+        the correct number of seconds\"\"\"\n+        params = {\n+            \"duration\": \"3h30m\",\n+            \"project\": \"ganeti-web-manager\",\n+            \"user\": \"example-user\",\n+            \"activities\": [\"documenting\"],\n+            \"notes\": \"Worked on docs\",\n+            \"issue_uri\": \"https://github.com/\",\n+            \"date_worked\": \"2014-04-17\",\n+        }\n+\n+        self.ts.create_time(params)\n+\n+        mock_create_or_update.assert_called_with(params, None, \"time\", \"times\")","path":"tests.py","position":80,"original_position":80,"commit_id":"a05cf0181c5242a8f96a260249084c172a7cd323","original_commit_id":"a05cf0181c5242a8f96a260249084c172a7cd323","user":{"login":"athai","id":6801364,"avatar_url":"https://avatars.githubusercontent.com/u/6801364?v=3","gravatar_id":"","url":"https://api.github.com/users/athai","html_url":"https://github.com/athai","followers_url":"https://api.github.com/users/athai/followers","following_url":"https://api.github.com/users/athai/following{/other_user}","gists_url":"https://api.github.com/users/athai/gists{/gist_id}","starred_url":"https://api.github.com/users/athai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athai/subscriptions","organizations_url":"https://api.github.com/users/athai/orgs","repos_url":"https://api.github.com/users/athai/repos","events_url":"https://api.github.com/users/athai/events{/privacy}","received_events_url":"https://api.github.com/users/athai/received_events","type":"User","site_admin":false},"body":"__interpret_times will be called within self.ts.update_time(params, \"uuid\") in which the duration will be converted from a string into an integer. ...Maybe I'm just completely misinterpreting what it should do?","created_at":"2016-01-13T22:41:24Z","updated_at":"2016-01-13T22:41:24Z","html_url":"https://github.com/osuosl/pymesync/pull/90#discussion_r49662628","pull_request_url":"https://api.github.com/repos/osuosl/pymesync/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/comments/49662628"},"html":{"href":"https://github.com/osuosl/pymesync/pull/90#discussion_r49662628"},"pull_request":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/osuosl/pymesync/pulls/90","id":55828821,"html_url":"https://github.com/osuosl/pymesync/pull/90","diff_url":"https://github.com/osuosl/pymesync/pull/90.diff","patch_url":"https://github.com/osuosl/pymesync/pull/90.patch","issue_url":"https://api.github.com/repos/osuosl/pymesync/issues/90","number":90,"state":"open","locked":false,"title":"Thai/interpret times","user":{"login":"athai","id":6801364,"avatar_url":"https://avatars.githubusercontent.com/u/6801364?v=3","gravatar_id":"","url":"https://api.github.com/users/athai","html_url":"https://github.com/athai","followers_url":"https://api.github.com/users/athai/followers","following_url":"https://api.github.com/users/athai/following{/other_user}","gists_url":"https://api.github.com/users/athai/gists{/gist_id}","starred_url":"https://api.github.com/users/athai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athai/subscriptions","organizations_url":"https://api.github.com/users/athai/orgs","repos_url":"https://api.github.com/users/athai/repos","events_url":"https://api.github.com/users/athai/events{/privacy}","received_events_url":"https://api.github.com/users/athai/received_events","type":"User","site_admin":false},"body":"#50. ","created_at":"2016-01-12T22:43:23Z","updated_at":"2016-01-13T22:41:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/osuosl/pymesync/pulls/90/commits","review_comments_url":"https://api.github.com/repos/osuosl/pymesync/pulls/90/comments","review_comment_url":"https://api.github.com/repos/osuosl/pymesync/pulls/comments{/number}","comments_url":"https://api.github.com/repos/osuosl/pymesync/issues/90/comments","statuses_url":"https://api.github.com/repos/osuosl/pymesync/statuses/a05cf0181c5242a8f96a260249084c172a7cd323","head":{"label":"osuosl:thai/interpret_times","ref":"thai/interpret_times","sha":"a05cf0181c5242a8f96a260249084c172a7cd323","user":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"repo":{"id":44197569,"name":"pymesync","full_name":"osuosl/pymesync","owner":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl/pymesync","description":"Python module to interface with the TimeSync API","fork":false,"url":"https://api.github.com/repos/osuosl/pymesync","forks_url":"https://api.github.com/repos/osuosl/pymesync/forks","keys_url":"https://api.github.com/repos/osuosl/pymesync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl/pymesync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl/pymesync/teams","hooks_url":"https://api.github.com/repos/osuosl/pymesync/hooks","issue_events_url":"https://api.github.com/repos/osuosl/pymesync/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl/pymesync/events","assignees_url":"https://api.github.com/repos/osuosl/pymesync/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl/pymesync/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl/pymesync/tags","blobs_url":"https://api.github.com/repos/osuosl/pymesync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl/pymesync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl/pymesync/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl/pymesync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl/pymesync/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl/pymesync/languages","stargazers_url":"https://api.github.com/repos/osuosl/pymesync/stargazers","contributors_url":"https://api.github.com/repos/osuosl/pymesync/contributors","subscribers_url":"https://api.github.com/repos/osuosl/pymesync/subscribers","subscription_url":"https://api.github.com/repos/osuosl/pymesync/subscription","commits_url":"https://api.github.com/repos/osuosl/pymesync/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl/pymesync/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl/pymesync/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl/pymesync/issues/comments{/number}","contents_url":"https://api.github.com/repos/osuosl/pymesync/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl/pymesync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl/pymesync/merges","archive_url":"https://api.github.com/repos/osuosl/pymesync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl/pymesync/downloads","issues_url":"https://api.github.com/repos/osuosl/pymesync/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl/pymesync/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl/pymesync/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl/pymesync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl/pymesync/labels{/name}","releases_url":"https://api.github.com/repos/osuosl/pymesync/releases{/id}","created_at":"2015-10-13T18:50:03Z","updated_at":"2016-01-11T17:39:58Z","pushed_at":"2016-01-13T22:05:42Z","git_url":"git://github.com/osuosl/pymesync.git","ssh_url":"git@github.com:osuosl/pymesync.git","clone_url":"https://github.com/osuosl/pymesync.git","svn_url":"https://github.com/osuosl/pymesync","homepage":null,"size":1073,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"osuosl:develop","ref":"develop","sha":"b451917ab3712c4c5c33231a565b12d114be88bb","user":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"repo":{"id":44197569,"name":"pymesync","full_name":"osuosl/pymesync","owner":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl/pymesync","description":"Python module to interface with the TimeSync API","fork":false,"url":"https://api.github.com/repos/osuosl/pymesync","forks_url":"https://api.github.com/repos/osuosl/pymesync/forks","keys_url":"https://api.github.com/repos/osuosl/pymesync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl/pymesync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl/pymesync/teams","hooks_url":"https://api.github.com/repos/osuosl/pymesync/hooks","issue_events_url":"https://api.github.com/repos/osuosl/pymesync/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl/pymesync/events","assignees_url":"https://api.github.com/repos/osuosl/pymesync/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl/pymesync/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl/pymesync/tags","blobs_url":"https://api.github.com/repos/osuosl/pymesync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl/pymesync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl/pymesync/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl/pymesync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl/pymesync/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl/pymesync/languages","stargazers_url":"https://api.github.com/repos/osuosl/pymesync/stargazers","contributors_url":"https://api.github.com/repos/osuosl/pymesync/contributors","subscribers_url":"https://api.github.com/repos/osuosl/pymesync/subscribers","subscription_url":"https://api.github.com/repos/osuosl/pymesync/subscription","commits_url":"https://api.github.com/repos/osuosl/pymesync/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl/pymesync/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl/pymesync/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl/pymesync/issues/comments{/number}","contents_url":"https://api.github.com/repos/osuosl/pymesync/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl/pymesync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl/pymesync/merges","archive_url":"https://api.github.com/repos/osuosl/pymesync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl/pymesync/downloads","issues_url":"https://api.github.com/repos/osuosl/pymesync/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl/pymesync/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl/pymesync/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl/pymesync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl/pymesync/labels{/name}","releases_url":"https://api.github.com/repos/osuosl/pymesync/releases{/id}","created_at":"2015-10-13T18:50:03Z","updated_at":"2016-01-11T17:39:58Z","pushed_at":"2016-01-13T22:05:42Z","git_url":"git://github.com/osuosl/pymesync.git","ssh_url":"git@github.com:osuosl/pymesync.git","clone_url":"https://github.com/osuosl/pymesync.git","svn_url":"https://github.com/osuosl/pymesync","homepage":null,"size":1073,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/90"},"html":{"href":"https://github.com/osuosl/pymesync/pull/90"},"issue":{"href":"https://api.github.com/repos/osuosl/pymesync/issues/90"},"comments":{"href":"https://api.github.com/repos/osuosl/pymesync/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/osuosl/pymesync/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/osuosl/pymesync/statuses/a05cf0181c5242a8f96a260249084c172a7cd323"}}}}