{"action":"created","comment":{"url":"https://api.github.com/repos/crashtack/learning_journal/pulls/comments/77025402","id":77025402,"diff_hunk":"@@ -103,21 +104,34 @@ def test_lists_body(new_session):\n def test_lists_date(new_session):\n     '''tests wether list() pull out correct data from db'''\n     from .views.default import home\n-    new_session.add(MyModel(title='test1', body='test2', date='test3'))\n+    new_session.add(Journal(title='test1', body='test2',\n+                    date=datetime.datetime.strptime('August 23, 2016', '%B %d, %Y')))\n     new_session.flush()\n     result = home(dummy_http_request(new_session))\n     for entry in result['entries']:\n-        assert entry.date == 'test3'\n+        assert entry.date.strftime('%B %d, %Y') == 'August 23, 2016'\n \n \n-def test_create(new_session):\n+def test_create_get(new_session):\n     \"\"\"\n-    Tests whether create() returns  {'poject': 'learning_journal'}\n+    Tests whether create() returns  {'title': '', 'body': '', 'error': ''}\n     on 'GET' request.\n     \"\"\"\n     from .views.default import create\n     assert create(dummy_http_request(new_session)) == \\\n-        {'poject': 'learning_journal'}\n+        {'title': '', 'body': '', 'error': ''}\n+\n+# causes: ../lib/python3.5/site-packages/zope/interface/registry.py:172: ComponentLookupError\n+# def test_create_post(new_session):\n+#     \"\"\"\n+#     Tests whether create() returns  HTTPFound on 'POST' request.\n+#     \"\"\"\n+#     from .views.default import create\n+#     # new_session.add(Journal(title='test1', body='test2',\n+#     #                 date=datetime.datetime.strptime('August 23, 2016', '%B %d, %Y')))\n+#     new_session.flush()\n+#     with pytest.raises(HTTPFound):\n+#         create(dummy_http_request_post('test1', 'test2', datetime.datetime.strptime('August 23, 2016', '%B %d, %Y'), new_session))","path":"learing_journal/tests.py","position":98,"original_position":98,"commit_id":"112a1b381e34b42685dce57d7f742db90e4f4005","original_commit_id":"112a1b381e34b42685dce57d7f742db90e4f4005","user":{"login":"nhuntwalker","id":5581888,"avatar_url":"https://avatars.githubusercontent.com/u/5581888?v=3","gravatar_id":"","url":"https://api.github.com/users/nhuntwalker","html_url":"https://github.com/nhuntwalker","followers_url":"https://api.github.com/users/nhuntwalker/followers","following_url":"https://api.github.com/users/nhuntwalker/following{/other_user}","gists_url":"https://api.github.com/users/nhuntwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/nhuntwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhuntwalker/subscriptions","organizations_url":"https://api.github.com/users/nhuntwalker/orgs","repos_url":"https://api.github.com/users/nhuntwalker/repos","events_url":"https://api.github.com/users/nhuntwalker/events{/privacy}","received_events_url":"https://api.github.com/users/nhuntwalker/received_events","type":"User","site_admin":false},"body":"Your create view returns an `HTTPFound` when you create a new post. One of the issues though is that in the test app you set up above, you don't include your \"routes\" like you did in your `__init__.py` file. As such, the test app that you're using to test your functionality has no awareness of how your routes connect to each other.","created_at":"2016-08-31T16:47:55Z","updated_at":"2016-08-31T16:47:55Z","html_url":"https://github.com/crashtack/learning_journal/pull/3#discussion_r77025402","pull_request_url":"https://api.github.com/repos/crashtack/learning_journal/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/crashtack/learning_journal/pulls/comments/77025402"},"html":{"href":"https://github.com/crashtack/learning_journal/pull/3#discussion_r77025402"},"pull_request":{"href":"https://api.github.com/repos/crashtack/learning_journal/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/crashtack/learning_journal/pulls/3","id":83400527,"html_url":"https://github.com/crashtack/learning_journal/pull/3","diff_url":"https://github.com/crashtack/learning_journal/pull/3.diff","patch_url":"https://github.com/crashtack/learning_journal/pull/3.patch","issue_url":"https://api.github.com/repos/crashtack/learning_journal/issues/3","number":3,"state":"open","locked":false,"title":"Security","user":{"login":"crashtack","id":19412309,"avatar_url":"https://avatars.githubusercontent.com/u/19412309?v=3","gravatar_id":"","url":"https://api.github.com/users/crashtack","html_url":"https://github.com/crashtack","followers_url":"https://api.github.com/users/crashtack/followers","following_url":"https://api.github.com/users/crashtack/following{/other_user}","gists_url":"https://api.github.com/users/crashtack/gists{/gist_id}","starred_url":"https://api.github.com/users/crashtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashtack/subscriptions","organizations_url":"https://api.github.com/users/crashtack/orgs","repos_url":"https://api.github.com/users/crashtack/repos","events_url":"https://api.github.com/users/crashtack/events{/privacy}","received_events_url":"https://api.github.com/users/crashtack/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-31T07:20:07Z","updated_at":"2016-08-31T16:47:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d1e49e3ec5e4cf6c22ef9641778839d7e256869","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/crashtack/learning_journal/pulls/3/commits","review_comments_url":"https://api.github.com/repos/crashtack/learning_journal/pulls/3/comments","review_comment_url":"https://api.github.com/repos/crashtack/learning_journal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crashtack/learning_journal/issues/3/comments","statuses_url":"https://api.github.com/repos/crashtack/learning_journal/statuses/112a1b381e34b42685dce57d7f742db90e4f4005","head":{"label":"crashtack:security","ref":"security","sha":"112a1b381e34b42685dce57d7f742db90e4f4005","user":{"login":"crashtack","id":19412309,"avatar_url":"https://avatars.githubusercontent.com/u/19412309?v=3","gravatar_id":"","url":"https://api.github.com/users/crashtack","html_url":"https://github.com/crashtack","followers_url":"https://api.github.com/users/crashtack/followers","following_url":"https://api.github.com/users/crashtack/following{/other_user}","gists_url":"https://api.github.com/users/crashtack/gists{/gist_id}","starred_url":"https://api.github.com/users/crashtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashtack/subscriptions","organizations_url":"https://api.github.com/users/crashtack/orgs","repos_url":"https://api.github.com/users/crashtack/repos","events_url":"https://api.github.com/users/crashtack/events{/privacy}","received_events_url":"https://api.github.com/users/crashtack/received_events","type":"User","site_admin":false},"repo":{"id":66679161,"name":"learning_journal","full_name":"crashtack/learning_journal","owner":{"login":"crashtack","id":19412309,"avatar_url":"https://avatars.githubusercontent.com/u/19412309?v=3","gravatar_id":"","url":"https://api.github.com/users/crashtack","html_url":"https://github.com/crashtack","followers_url":"https://api.github.com/users/crashtack/followers","following_url":"https://api.github.com/users/crashtack/following{/other_user}","gists_url":"https://api.github.com/users/crashtack/gists{/gist_id}","starred_url":"https://api.github.com/users/crashtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashtack/subscriptions","organizations_url":"https://api.github.com/users/crashtack/orgs","repos_url":"https://api.github.com/users/crashtack/repos","events_url":"https://api.github.com/users/crashtack/events{/privacy}","received_events_url":"https://api.github.com/users/crashtack/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crashtack/learning_journal","description":null,"fork":false,"url":"https://api.github.com/repos/crashtack/learning_journal","forks_url":"https://api.github.com/repos/crashtack/learning_journal/forks","keys_url":"https://api.github.com/repos/crashtack/learning_journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crashtack/learning_journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crashtack/learning_journal/teams","hooks_url":"https://api.github.com/repos/crashtack/learning_journal/hooks","issue_events_url":"https://api.github.com/repos/crashtack/learning_journal/issues/events{/number}","events_url":"https://api.github.com/repos/crashtack/learning_journal/events","assignees_url":"https://api.github.com/repos/crashtack/learning_journal/assignees{/user}","branches_url":"https://api.github.com/repos/crashtack/learning_journal/branches{/branch}","tags_url":"https://api.github.com/repos/crashtack/learning_journal/tags","blobs_url":"https://api.github.com/repos/crashtack/learning_journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crashtack/learning_journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crashtack/learning_journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/crashtack/learning_journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crashtack/learning_journal/statuses/{sha}","languages_url":"https://api.github.com/repos/crashtack/learning_journal/languages","stargazers_url":"https://api.github.com/repos/crashtack/learning_journal/stargazers","contributors_url":"https://api.github.com/repos/crashtack/learning_journal/contributors","subscribers_url":"https://api.github.com/repos/crashtack/learning_journal/subscribers","subscription_url":"https://api.github.com/repos/crashtack/learning_journal/subscription","commits_url":"https://api.github.com/repos/crashtack/learning_journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/crashtack/learning_journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/crashtack/learning_journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/crashtack/learning_journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/crashtack/learning_journal/contents/{+path}","compare_url":"https://api.github.com/repos/crashtack/learning_journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crashtack/learning_journal/merges","archive_url":"https://api.github.com/repos/crashtack/learning_journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crashtack/learning_journal/downloads","issues_url":"https://api.github.com/repos/crashtack/learning_journal/issues{/number}","pulls_url":"https://api.github.com/repos/crashtack/learning_journal/pulls{/number}","milestones_url":"https://api.github.com/repos/crashtack/learning_journal/milestones{/number}","notifications_url":"https://api.github.com/repos/crashtack/learning_journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crashtack/learning_journal/labels{/name}","releases_url":"https://api.github.com/repos/crashtack/learning_journal/releases{/id}","deployments_url":"https://api.github.com/repos/crashtack/learning_journal/deployments","created_at":"2016-08-26T21:03:46Z","updated_at":"2016-08-26T21:16:36Z","pushed_at":"2016-08-31T07:20:08Z","git_url":"git://github.com/crashtack/learning_journal.git","ssh_url":"git@github.com:crashtack/learning_journal.git","clone_url":"https://github.com/crashtack/learning_journal.git","svn_url":"https://github.com/crashtack/learning_journal","homepage":null,"size":119,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"crashtack:master","ref":"master","sha":"734eab2bc956adeaff6b3721a6371b6a1906e274","user":{"login":"crashtack","id":19412309,"avatar_url":"https://avatars.githubusercontent.com/u/19412309?v=3","gravatar_id":"","url":"https://api.github.com/users/crashtack","html_url":"https://github.com/crashtack","followers_url":"https://api.github.com/users/crashtack/followers","following_url":"https://api.github.com/users/crashtack/following{/other_user}","gists_url":"https://api.github.com/users/crashtack/gists{/gist_id}","starred_url":"https://api.github.com/users/crashtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashtack/subscriptions","organizations_url":"https://api.github.com/users/crashtack/orgs","repos_url":"https://api.github.com/users/crashtack/repos","events_url":"https://api.github.com/users/crashtack/events{/privacy}","received_events_url":"https://api.github.com/users/crashtack/received_events","type":"User","site_admin":false},"repo":{"id":66679161,"name":"learning_journal","full_name":"crashtack/learning_journal","owner":{"login":"crashtack","id":19412309,"avatar_url":"https://avatars.githubusercontent.com/u/19412309?v=3","gravatar_id":"","url":"https://api.github.com/users/crashtack","html_url":"https://github.com/crashtack","followers_url":"https://api.github.com/users/crashtack/followers","following_url":"https://api.github.com/users/crashtack/following{/other_user}","gists_url":"https://api.github.com/users/crashtack/gists{/gist_id}","starred_url":"https://api.github.com/users/crashtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashtack/subscriptions","organizations_url":"https://api.github.com/users/crashtack/orgs","repos_url":"https://api.github.com/users/crashtack/repos","events_url":"https://api.github.com/users/crashtack/events{/privacy}","received_events_url":"https://api.github.com/users/crashtack/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crashtack/learning_journal","description":null,"fork":false,"url":"https://api.github.com/repos/crashtack/learning_journal","forks_url":"https://api.github.com/repos/crashtack/learning_journal/forks","keys_url":"https://api.github.com/repos/crashtack/learning_journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crashtack/learning_journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crashtack/learning_journal/teams","hooks_url":"https://api.github.com/repos/crashtack/learning_journal/hooks","issue_events_url":"https://api.github.com/repos/crashtack/learning_journal/issues/events{/number}","events_url":"https://api.github.com/repos/crashtack/learning_journal/events","assignees_url":"https://api.github.com/repos/crashtack/learning_journal/assignees{/user}","branches_url":"https://api.github.com/repos/crashtack/learning_journal/branches{/branch}","tags_url":"https://api.github.com/repos/crashtack/learning_journal/tags","blobs_url":"https://api.github.com/repos/crashtack/learning_journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crashtack/learning_journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crashtack/learning_journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/crashtack/learning_journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crashtack/learning_journal/statuses/{sha}","languages_url":"https://api.github.com/repos/crashtack/learning_journal/languages","stargazers_url":"https://api.github.com/repos/crashtack/learning_journal/stargazers","contributors_url":"https://api.github.com/repos/crashtack/learning_journal/contributors","subscribers_url":"https://api.github.com/repos/crashtack/learning_journal/subscribers","subscription_url":"https://api.github.com/repos/crashtack/learning_journal/subscription","commits_url":"https://api.github.com/repos/crashtack/learning_journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/crashtack/learning_journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/crashtack/learning_journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/crashtack/learning_journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/crashtack/learning_journal/contents/{+path}","compare_url":"https://api.github.com/repos/crashtack/learning_journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crashtack/learning_journal/merges","archive_url":"https://api.github.com/repos/crashtack/learning_journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crashtack/learning_journal/downloads","issues_url":"https://api.github.com/repos/crashtack/learning_journal/issues{/number}","pulls_url":"https://api.github.com/repos/crashtack/learning_journal/pulls{/number}","milestones_url":"https://api.github.com/repos/crashtack/learning_journal/milestones{/number}","notifications_url":"https://api.github.com/repos/crashtack/learning_journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crashtack/learning_journal/labels{/name}","releases_url":"https://api.github.com/repos/crashtack/learning_journal/releases{/id}","deployments_url":"https://api.github.com/repos/crashtack/learning_journal/deployments","created_at":"2016-08-26T21:03:46Z","updated_at":"2016-08-26T21:16:36Z","pushed_at":"2016-08-31T07:20:08Z","git_url":"git://github.com/crashtack/learning_journal.git","ssh_url":"git@github.com:crashtack/learning_journal.git","clone_url":"https://github.com/crashtack/learning_journal.git","svn_url":"https://github.com/crashtack/learning_journal","homepage":null,"size":119,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crashtack/learning_journal/pulls/3"},"html":{"href":"https://github.com/crashtack/learning_journal/pull/3"},"issue":{"href":"https://api.github.com/repos/crashtack/learning_journal/issues/3"},"comments":{"href":"https://api.github.com/repos/crashtack/learning_journal/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/crashtack/learning_journal/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/crashtack/learning_journal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crashtack/learning_journal/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/crashtack/learning_journal/statuses/112a1b381e34b42685dce57d7f742db90e4f4005"}}}}
{"actor":{"display_login":"nhuntwalker"}}