{"action":"created","issue":{"url":"https://api.github.com/repos/ryansb/ofCourse/issues/59","labels_url":"https://api.github.com/repos/ryansb/ofCourse/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/ryansb/ofCourse/issues/59/comments","events_url":"https://api.github.com/repos/ryansb/ofCourse/issues/59/events","html_url":"https://github.com/ryansb/ofCourse/pull/59","id":112369717,"number":59,"title":"Add tests for `ofcourse new` command","user":{"login":"ryansb","id":636610,"avatar_url":"https://avatars.githubusercontent.com/u/636610?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansb","html_url":"https://github.com/ryansb","followers_url":"https://api.github.com/users/ryansb/followers","following_url":"https://api.github.com/users/ryansb/following{/other_user}","gists_url":"https://api.github.com/users/ryansb/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansb/subscriptions","organizations_url":"https://api.github.com/users/ryansb/orgs","repos_url":"https://api.github.com/users/ryansb/repos","events_url":"https://api.github.com/users/ryansb/events{/privacy}","received_events_url":"https://api.github.com/users/ryansb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-20T13:32:17Z","updated_at":"2015-10-20T13:41:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ryansb/ofCourse/pulls/59","html_url":"https://github.com/ryansb/ofCourse/pull/59","diff_url":"https://github.com/ryansb/ofCourse/pull/59.diff","patch_url":"https://github.com/ryansb/ofCourse/pull/59.patch"},"body":"Turns out that iCal support breaks the `ofcourse new` command. This PR fixes the command and adds a test to make sure it at least completes successfully. "},"comment":{"url":"https://api.github.com/repos/ryansb/ofCourse/issues/comments/149571578","html_url":"https://github.com/ryansb/ofCourse/pull/59#issuecomment-149571578","issue_url":"https://api.github.com/repos/ryansb/ofCourse/issues/59","id":149571578,"user":{"login":"ryansb","id":636610,"avatar_url":"https://avatars.githubusercontent.com/u/636610?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansb","html_url":"https://github.com/ryansb","followers_url":"https://api.github.com/users/ryansb/followers","following_url":"https://api.github.com/users/ryansb/following{/other_user}","gists_url":"https://api.github.com/users/ryansb/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansb/subscriptions","organizations_url":"https://api.github.com/users/ryansb/orgs","repos_url":"https://api.github.com/users/ryansb/repos","events_url":"https://api.github.com/users/ryansb/events{/privacy}","received_events_url":"https://api.github.com/users/ryansb/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T13:41:25Z","updated_at":"2015-10-20T13:41:25Z","body":"The addition of the iCal file copying to `ofcourse new` in commit [24c34743](https://github.com/ryansb/ofCourse/commit/24c34743a8016a9837d9d3429dfc691cfef7d74d) causes the `new` command to try to copy a nonexistent file.\r\n\r\n```\r\n$ ofcourse new\r\n✔ Glorious README\r\n✔ CSS/Javascript for browser art\r\n✔ Starter Mako templates for great good\r\nTraceback (most recent call last):\r\n  File \"/home/ryansb/.pyenv/versions/tmpenv-tKdut4PdR0CnD9O/bin/ofcourse\", line 9, in <module>\r\n    load_entry_point('ofcourse==0.2.1.post21', 'console_scripts', 'ofcourse')()\r\n  File \"/home/ryansb/.pyenv/versions/tmpenv-tKdut4PdR0CnD9O/lib/python2.7/site-packages/click/core.py\", line 700, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/ryansb/.pyenv/versions/tmpenv-tKdut4PdR0CnD9O/lib/python2.7/site-packages/click/core.py\", line 680, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/ryansb/.pyenv/versions/tmpenv-tKdut4PdR0CnD9O/lib/python2.7/site-packages/click/core.py\", line 1027, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/home/ryansb/.pyenv/versions/tmpenv-tKdut4PdR0CnD9O/lib/python2.7/site-packages/click/core.py\", line 873, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/ryansb/.pyenv/versions/tmpenv-tKdut4PdR0CnD9O/lib/python2.7/site-packages/click/core.py\", line 508, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/ryansb/code/ofcourse/ofcourse/cli/__init__.py\", line 85, in new\r\n    os.getcwd(), update=True)\r\n  File \"/home/ryansb/.pyenv/versions/2.7.9/lib/python2.7/distutils/file_util.py\", line 110, in copy_file\r\n    \"can't copy '%s': doesn't exist or not a regular file\" % src)\r\ndistutils.errors.DistutilsFileError: can't copy '/home/ryansb/code/ofcourse/ofcourse/course.ics': doesn't exist or not a regular file\r\n```"}}