{"action":"created","comment":{"url":"https://api.github.com/repos/twosigma/Cook/pulls/comments/144060892","pull_request_review_id":68664576,"id":144060892,"diff_hunk":"@@ -0,0 +1,56 @@\n+import datetime\n+import logging\n+import unittest\n+\n+import pytz\n+from dateutil.tz import tzlocal, tz\n+from freezegun import freeze_time\n+from nose.plugins.attrib import attr\n+\n+from cook import dateparser\n+\n+\n+@attr(cli=True)\n+class CookCliTest(unittest.TestCase):\n+    _multiprocess_can_split_ = True\n+\n+    def setUp(self):\n+        self.logger = logging.getLogger(__name__)\n+\n+    def test_parse(self):\n+        time_zone = pytz.utc\n+        now = datetime.datetime.now(time_zone)\n+        with freeze_time(now):\n+            self.assertEqual(now, dateparser.parse('now', time_zone))\n+            self.assertEqual(now, dateparser.parse('NOW', time_zone))","path":"cli/tests/subcommands/test_dateparser.py","position":25,"original_position":25,"commit_id":"c224aba1ccba34d6e3134fdde76faf46ef390876","original_commit_id":"2cc912b16ef4321f0f1716b839d5a903fa235eca","user":{"login":"dposada","id":444778,"avatar_url":"https://avatars0.githubusercontent.com/u/444778?v=4","gravatar_id":"","url":"https://api.github.com/users/dposada","html_url":"https://github.com/dposada","followers_url":"https://api.github.com/users/dposada/followers","following_url":"https://api.github.com/users/dposada/following{/other_user}","gists_url":"https://api.github.com/users/dposada/gists{/gist_id}","starred_url":"https://api.github.com/users/dposada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dposada/subscriptions","organizations_url":"https://api.github.com/users/dposada/orgs","repos_url":"https://api.github.com/users/dposada/repos","events_url":"https://api.github.com/users/dposada/events{/privacy}","received_events_url":"https://api.github.com/users/dposada/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2017-10-11T16:14:55Z","updated_at":"2017-10-11T16:14:55Z","html_url":"https://github.com/twosigma/Cook/pull/477#discussion_r144060892","pull_request_url":"https://api.github.com/repos/twosigma/Cook/pulls/477","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/comments/144060892"},"html":{"href":"https://github.com/twosigma/Cook/pull/477#discussion_r144060892"},"pull_request":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/477"}},"in_reply_to_id":143552680},"pull_request":{"url":"https://api.github.com/repos/twosigma/Cook/pulls/477","id":144771987,"html_url":"https://github.com/twosigma/Cook/pull/477","diff_url":"https://github.com/twosigma/Cook/pull/477.diff","patch_url":"https://github.com/twosigma/Cook/pull/477.patch","issue_url":"https://api.github.com/repos/twosigma/Cook/issues/477","number":477,"state":"open","locked":false,"title":"Makes various improvements to the CLI","user":{"login":"dposada","id":444778,"avatar_url":"https://avatars0.githubusercontent.com/u/444778?v=4","gravatar_id":"","url":"https://api.github.com/users/dposada","html_url":"https://github.com/dposada","followers_url":"https://api.github.com/users/dposada/followers","following_url":"https://api.github.com/users/dposada/following{/other_user}","gists_url":"https://api.github.com/users/dposada/gists{/gist_id}","starred_url":"https://api.github.com/users/dposada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dposada/subscriptions","organizations_url":"https://api.github.com/users/dposada/orgs","repos_url":"https://api.github.com/users/dposada/repos","events_url":"https://api.github.com/users/dposada/events{/privacy}","received_events_url":"https://api.github.com/users/dposada/received_events","type":"User","site_admin":false},"body":"- [x] read version from a shared `version.py` file\r\n- [x] on `list`, change `--state ...` to `--all`, `--waiting`, etc\r\n- [x] on `list`, default should be waiting + running, not just running\r\n- [x] on `list` lookback help, `\"X\"` -> `\"LOOKBACK\"`\r\n- [x] on `list`, add support for `--submitted-after` and `--submitted-before`\r\n- [x] case insensitive cluster names\r\n- [x] increase the default read timeout\r\n- [x] don't show `KeyboardInterrupt` garbage on `Ctrl+C`\r\n- [x] list all default flag values in help text\r\n- [x] on `submit`, if we timeout, tell the user that their job may have been submitted\r\n- [x] on `wait`, fix the weird formatting issue","created_at":"2017-10-04T20:49:01Z","updated_at":"2017-10-11T16:14:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e1b786cb952c68b7dec81b99011a1591d491fce","assignee":{"login":"dposada","id":444778,"avatar_url":"https://avatars0.githubusercontent.com/u/444778?v=4","gravatar_id":"","url":"https://api.github.com/users/dposada","html_url":"https://github.com/dposada","followers_url":"https://api.github.com/users/dposada/followers","following_url":"https://api.github.com/users/dposada/following{/other_user}","gists_url":"https://api.github.com/users/dposada/gists{/gist_id}","starred_url":"https://api.github.com/users/dposada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dposada/subscriptions","organizations_url":"https://api.github.com/users/dposada/orgs","repos_url":"https://api.github.com/users/dposada/repos","events_url":"https://api.github.com/users/dposada/events{/privacy}","received_events_url":"https://api.github.com/users/dposada/received_events","type":"User","site_admin":false},"assignees":[{"login":"dposada","id":444778,"avatar_url":"https://avatars0.githubusercontent.com/u/444778?v=4","gravatar_id":"","url":"https://api.github.com/users/dposada","html_url":"https://github.com/dposada","followers_url":"https://api.github.com/users/dposada/followers","following_url":"https://api.github.com/users/dposada/following{/other_user}","gists_url":"https://api.github.com/users/dposada/gists{/gist_id}","starred_url":"https://api.github.com/users/dposada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dposada/subscriptions","organizations_url":"https://api.github.com/users/dposada/orgs","repos_url":"https://api.github.com/users/dposada/repos","events_url":"https://api.github.com/users/dposada/events{/privacy}","received_events_url":"https://api.github.com/users/dposada/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/twosigma/Cook/pulls/477/commits","review_comments_url":"https://api.github.com/repos/twosigma/Cook/pulls/477/comments","review_comment_url":"https://api.github.com/repos/twosigma/Cook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twosigma/Cook/issues/477/comments","statuses_url":"https://api.github.com/repos/twosigma/Cook/statuses/c224aba1ccba34d6e3134fdde76faf46ef390876","head":{"label":"dposada:various-fixes","ref":"various-fixes","sha":"c224aba1ccba34d6e3134fdde76faf46ef390876","user":{"login":"dposada","id":444778,"avatar_url":"https://avatars0.githubusercontent.com/u/444778?v=4","gravatar_id":"","url":"https://api.github.com/users/dposada","html_url":"https://github.com/dposada","followers_url":"https://api.github.com/users/dposada/followers","following_url":"https://api.github.com/users/dposada/following{/other_user}","gists_url":"https://api.github.com/users/dposada/gists{/gist_id}","starred_url":"https://api.github.com/users/dposada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dposada/subscriptions","organizations_url":"https://api.github.com/users/dposada/orgs","repos_url":"https://api.github.com/users/dposada/repos","events_url":"https://api.github.com/users/dposada/events{/privacy}","received_events_url":"https://api.github.com/users/dposada/received_events","type":"User","site_admin":false},"repo":{"id":79499145,"name":"Cook","full_name":"dposada/Cook","owner":{"login":"dposada","id":444778,"avatar_url":"https://avatars0.githubusercontent.com/u/444778?v=4","gravatar_id":"","url":"https://api.github.com/users/dposada","html_url":"https://github.com/dposada","followers_url":"https://api.github.com/users/dposada/followers","following_url":"https://api.github.com/users/dposada/following{/other_user}","gists_url":"https://api.github.com/users/dposada/gists{/gist_id}","starred_url":"https://api.github.com/users/dposada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dposada/subscriptions","organizations_url":"https://api.github.com/users/dposada/orgs","repos_url":"https://api.github.com/users/dposada/repos","events_url":"https://api.github.com/users/dposada/events{/privacy}","received_events_url":"https://api.github.com/users/dposada/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dposada/Cook","description":"Fair job scheduler on Mesos for batch workloads and Spark","fork":true,"url":"https://api.github.com/repos/dposada/Cook","forks_url":"https://api.github.com/repos/dposada/Cook/forks","keys_url":"https://api.github.com/repos/dposada/Cook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dposada/Cook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dposada/Cook/teams","hooks_url":"https://api.github.com/repos/dposada/Cook/hooks","issue_events_url":"https://api.github.com/repos/dposada/Cook/issues/events{/number}","events_url":"https://api.github.com/repos/dposada/Cook/events","assignees_url":"https://api.github.com/repos/dposada/Cook/assignees{/user}","branches_url":"https://api.github.com/repos/dposada/Cook/branches{/branch}","tags_url":"https://api.github.com/repos/dposada/Cook/tags","blobs_url":"https://api.github.com/repos/dposada/Cook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dposada/Cook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dposada/Cook/git/refs{/sha}","trees_url":"https://api.github.com/repos/dposada/Cook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dposada/Cook/statuses/{sha}","languages_url":"https://api.github.com/repos/dposada/Cook/languages","stargazers_url":"https://api.github.com/repos/dposada/Cook/stargazers","contributors_url":"https://api.github.com/repos/dposada/Cook/contributors","subscribers_url":"https://api.github.com/repos/dposada/Cook/subscribers","subscription_url":"https://api.github.com/repos/dposada/Cook/subscription","commits_url":"https://api.github.com/repos/dposada/Cook/commits{/sha}","git_commits_url":"https://api.github.com/repos/dposada/Cook/git/commits{/sha}","comments_url":"https://api.github.com/repos/dposada/Cook/comments{/number}","issue_comment_url":"https://api.github.com/repos/dposada/Cook/issues/comments{/number}","contents_url":"https://api.github.com/repos/dposada/Cook/contents/{+path}","compare_url":"https://api.github.com/repos/dposada/Cook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dposada/Cook/merges","archive_url":"https://api.github.com/repos/dposada/Cook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dposada/Cook/downloads","issues_url":"https://api.github.com/repos/dposada/Cook/issues{/number}","pulls_url":"https://api.github.com/repos/dposada/Cook/pulls{/number}","milestones_url":"https://api.github.com/repos/dposada/Cook/milestones{/number}","notifications_url":"https://api.github.com/repos/dposada/Cook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dposada/Cook/labels{/name}","releases_url":"https://api.github.com/repos/dposada/Cook/releases{/id}","deployments_url":"https://api.github.com/repos/dposada/Cook/deployments","created_at":"2017-01-19T21:54:37Z","updated_at":"2017-01-19T21:54:40Z","pushed_at":"2017-10-11T16:14:41Z","git_url":"git://github.com/dposada/Cook.git","ssh_url":"git@github.com:dposada/Cook.git","clone_url":"https://github.com/dposada/Cook.git","svn_url":"https://github.com/dposada/Cook","homepage":"","size":40448,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":false,"has_projects":true,"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":"twosigma:master","ref":"master","sha":"2a70261abc403ddc3e7987df898a2c0a530ada27","user":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars3.githubusercontent.com/u/4049181?v=4","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"repo":{"id":42325066,"name":"Cook","full_name":"twosigma/Cook","owner":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars3.githubusercontent.com/u/4049181?v=4","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twosigma/Cook","description":"Fair job scheduler on Mesos for batch workloads and Spark","fork":false,"url":"https://api.github.com/repos/twosigma/Cook","forks_url":"https://api.github.com/repos/twosigma/Cook/forks","keys_url":"https://api.github.com/repos/twosigma/Cook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twosigma/Cook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twosigma/Cook/teams","hooks_url":"https://api.github.com/repos/twosigma/Cook/hooks","issue_events_url":"https://api.github.com/repos/twosigma/Cook/issues/events{/number}","events_url":"https://api.github.com/repos/twosigma/Cook/events","assignees_url":"https://api.github.com/repos/twosigma/Cook/assignees{/user}","branches_url":"https://api.github.com/repos/twosigma/Cook/branches{/branch}","tags_url":"https://api.github.com/repos/twosigma/Cook/tags","blobs_url":"https://api.github.com/repos/twosigma/Cook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twosigma/Cook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twosigma/Cook/git/refs{/sha}","trees_url":"https://api.github.com/repos/twosigma/Cook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twosigma/Cook/statuses/{sha}","languages_url":"https://api.github.com/repos/twosigma/Cook/languages","stargazers_url":"https://api.github.com/repos/twosigma/Cook/stargazers","contributors_url":"https://api.github.com/repos/twosigma/Cook/contributors","subscribers_url":"https://api.github.com/repos/twosigma/Cook/subscribers","subscription_url":"https://api.github.com/repos/twosigma/Cook/subscription","commits_url":"https://api.github.com/repos/twosigma/Cook/commits{/sha}","git_commits_url":"https://api.github.com/repos/twosigma/Cook/git/commits{/sha}","comments_url":"https://api.github.com/repos/twosigma/Cook/comments{/number}","issue_comment_url":"https://api.github.com/repos/twosigma/Cook/issues/comments{/number}","contents_url":"https://api.github.com/repos/twosigma/Cook/contents/{+path}","compare_url":"https://api.github.com/repos/twosigma/Cook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twosigma/Cook/merges","archive_url":"https://api.github.com/repos/twosigma/Cook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twosigma/Cook/downloads","issues_url":"https://api.github.com/repos/twosigma/Cook/issues{/number}","pulls_url":"https://api.github.com/repos/twosigma/Cook/pulls{/number}","milestones_url":"https://api.github.com/repos/twosigma/Cook/milestones{/number}","notifications_url":"https://api.github.com/repos/twosigma/Cook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twosigma/Cook/labels{/name}","releases_url":"https://api.github.com/repos/twosigma/Cook/releases{/id}","deployments_url":"https://api.github.com/repos/twosigma/Cook/deployments","created_at":"2015-09-11T18:20:08Z","updated_at":"2017-10-08T21:44:53Z","pushed_at":"2017-10-11T16:14:43Z","git_url":"git://github.com/twosigma/Cook.git","ssh_url":"git@github.com:twosigma/Cook.git","clone_url":"https://github.com/twosigma/Cook.git","svn_url":"https://github.com/twosigma/Cook","homepage":"","size":40549,"stargazers_count":212,"watchers_count":212,"language":"Clojure","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":91,"forks":42,"open_issues":91,"watchers":212,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/477"},"html":{"href":"https://github.com/twosigma/Cook/pull/477"},"issue":{"href":"https://api.github.com/repos/twosigma/Cook/issues/477"},"comments":{"href":"https://api.github.com/repos/twosigma/Cook/issues/477/comments"},"review_comments":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/477/comments"},"review_comment":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/477/commits"},"statuses":{"href":"https://api.github.com/repos/twosigma/Cook/statuses/c224aba1ccba34d6e3134fdde76faf46ef390876"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"dposada"}}