{"action":"created","comment":{"url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/comments/87872022","pull_request_review_id":8465343,"id":87872022,"diff_hunk":"@@ -0,0 +1,30 @@\n+from django.urls import reverse\n+from django.test import TestCase, Client\n+\n+\n+class ExpenseAPIView(TestCase):\n+    def setUp(self):\n+        self.c = Client()\n+\n+    def post_payload(self, payload):\n+        return self.c.post(\n+            reverse(\"event_create\"),\n+            payload,\n+            content_type=\"application/json\"\n+        )\n+\n+    def test_post__simple_create(self):\n+        payload = {\n+            \"previous_event\": None,\n+            \"name\": \"pycon ticket\",\n+            \"amount\": \"150.0000\",\n+            \"date\": \"2016-11-14T12:34:56\",\n+        }","path":"hr/api/tests/test_views.py","position":22,"original_position":22,"commit_id":"b1e4ab4bb21ef19b6d00cf4764dc8a53176d39e4","original_commit_id":"b1e4ab4bb21ef19b6d00cf4764dc8a53176d39e4","user":{"login":"can-z","id":477525,"avatar_url":"https://avatars.githubusercontent.com/u/477525?v=3","gravatar_id":"","url":"https://api.github.com/users/can-z","html_url":"https://github.com/can-z","followers_url":"https://api.github.com/users/can-z/followers","following_url":"https://api.github.com/users/can-z/following{/other_user}","gists_url":"https://api.github.com/users/can-z/gists{/gist_id}","starred_url":"https://api.github.com/users/can-z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/can-z/subscriptions","organizations_url":"https://api.github.com/users/can-z/orgs","repos_url":"https://api.github.com/users/can-z/repos","events_url":"https://api.github.com/users/can-z/events{/privacy}","received_events_url":"https://api.github.com/users/can-z/received_events","type":"User","site_admin":false},"body":"the payload would also include the sequence number.","created_at":"2016-11-14T19:18:15Z","updated_at":"2016-11-14T19:19:32Z","html_url":"https://github.com/waveaccounting/event-sourcing-example/pull/3#discussion_r87872022","pull_request_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/comments/87872022"},"html":{"href":"https://github.com/waveaccounting/event-sourcing-example/pull/3#discussion_r87872022"},"pull_request":{"href":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/3","id":93628387,"html_url":"https://github.com/waveaccounting/event-sourcing-example/pull/3","diff_url":"https://github.com/waveaccounting/event-sourcing-example/pull/3.diff","patch_url":"https://github.com/waveaccounting/event-sourcing-example/pull/3.patch","issue_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues/3","number":3,"state":"open","locked":false,"title":"Feature/endpoints","user":{"login":"Incognito","id":379322,"avatar_url":"https://avatars.githubusercontent.com/u/379322?v=3","gravatar_id":"","url":"https://api.github.com/users/Incognito","html_url":"https://github.com/Incognito","followers_url":"https://api.github.com/users/Incognito/followers","following_url":"https://api.github.com/users/Incognito/following{/other_user}","gists_url":"https://api.github.com/users/Incognito/gists{/gist_id}","starred_url":"https://api.github.com/users/Incognito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Incognito/subscriptions","organizations_url":"https://api.github.com/users/Incognito/orgs","repos_url":"https://api.github.com/users/Incognito/repos","events_url":"https://api.github.com/users/Incognito/events{/privacy}","received_events_url":"https://api.github.com/users/Incognito/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-14T19:15:30Z","updated_at":"2016-11-14T19:19:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18379fe8afdf5b67f1537cf9e2c4cf42c9850c60","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/3/commits","review_comments_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/3/comments","review_comment_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues/3/comments","statuses_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/statuses/b1e4ab4bb21ef19b6d00cf4764dc8a53176d39e4","head":{"label":"waveaccounting:feature/endpoints","ref":"feature/endpoints","sha":"b1e4ab4bb21ef19b6d00cf4764dc8a53176d39e4","user":{"login":"waveaccounting","id":779298,"avatar_url":"https://avatars.githubusercontent.com/u/779298?v=3","gravatar_id":"","url":"https://api.github.com/users/waveaccounting","html_url":"https://github.com/waveaccounting","followers_url":"https://api.github.com/users/waveaccounting/followers","following_url":"https://api.github.com/users/waveaccounting/following{/other_user}","gists_url":"https://api.github.com/users/waveaccounting/gists{/gist_id}","starred_url":"https://api.github.com/users/waveaccounting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveaccounting/subscriptions","organizations_url":"https://api.github.com/users/waveaccounting/orgs","repos_url":"https://api.github.com/users/waveaccounting/repos","events_url":"https://api.github.com/users/waveaccounting/events{/privacy}","received_events_url":"https://api.github.com/users/waveaccounting/received_events","type":"Organization","site_admin":false},"repo":{"id":73715267,"name":"event-sourcing-example","full_name":"waveaccounting/event-sourcing-example","owner":{"login":"waveaccounting","id":779298,"avatar_url":"https://avatars.githubusercontent.com/u/779298?v=3","gravatar_id":"","url":"https://api.github.com/users/waveaccounting","html_url":"https://github.com/waveaccounting","followers_url":"https://api.github.com/users/waveaccounting/followers","following_url":"https://api.github.com/users/waveaccounting/following{/other_user}","gists_url":"https://api.github.com/users/waveaccounting/gists{/gist_id}","starred_url":"https://api.github.com/users/waveaccounting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveaccounting/subscriptions","organizations_url":"https://api.github.com/users/waveaccounting/orgs","repos_url":"https://api.github.com/users/waveaccounting/repos","events_url":"https://api.github.com/users/waveaccounting/events{/privacy}","received_events_url":"https://api.github.com/users/waveaccounting/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/waveaccounting/event-sourcing-example","description":null,"fork":false,"url":"https://api.github.com/repos/waveaccounting/event-sourcing-example","forks_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/forks","keys_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/teams","hooks_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/hooks","issue_events_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues/events{/number}","events_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/events","assignees_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/assignees{/user}","branches_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/branches{/branch}","tags_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/tags","blobs_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/statuses/{sha}","languages_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/languages","stargazers_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/stargazers","contributors_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/contributors","subscribers_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/subscribers","subscription_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/subscription","commits_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/contents/{+path}","compare_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/merges","archive_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/downloads","issues_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues{/number}","pulls_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls{/number}","milestones_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/milestones{/number}","notifications_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/labels{/name}","releases_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/releases{/id}","deployments_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/deployments","created_at":"2016-11-14T14:56:09Z","updated_at":"2016-11-14T15:10:28Z","pushed_at":"2016-11-14T19:15:31Z","git_url":"git://github.com/waveaccounting/event-sourcing-example.git","ssh_url":"git@github.com:waveaccounting/event-sourcing-example.git","clone_url":"https://github.com/waveaccounting/event-sourcing-example.git","svn_url":"https://github.com/waveaccounting/event-sourcing-example","homepage":null,"size":9,"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":"waveaccounting:master","ref":"master","sha":"af583270d83f138b46a4f008c6f65cf5356bca17","user":{"login":"waveaccounting","id":779298,"avatar_url":"https://avatars.githubusercontent.com/u/779298?v=3","gravatar_id":"","url":"https://api.github.com/users/waveaccounting","html_url":"https://github.com/waveaccounting","followers_url":"https://api.github.com/users/waveaccounting/followers","following_url":"https://api.github.com/users/waveaccounting/following{/other_user}","gists_url":"https://api.github.com/users/waveaccounting/gists{/gist_id}","starred_url":"https://api.github.com/users/waveaccounting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveaccounting/subscriptions","organizations_url":"https://api.github.com/users/waveaccounting/orgs","repos_url":"https://api.github.com/users/waveaccounting/repos","events_url":"https://api.github.com/users/waveaccounting/events{/privacy}","received_events_url":"https://api.github.com/users/waveaccounting/received_events","type":"Organization","site_admin":false},"repo":{"id":73715267,"name":"event-sourcing-example","full_name":"waveaccounting/event-sourcing-example","owner":{"login":"waveaccounting","id":779298,"avatar_url":"https://avatars.githubusercontent.com/u/779298?v=3","gravatar_id":"","url":"https://api.github.com/users/waveaccounting","html_url":"https://github.com/waveaccounting","followers_url":"https://api.github.com/users/waveaccounting/followers","following_url":"https://api.github.com/users/waveaccounting/following{/other_user}","gists_url":"https://api.github.com/users/waveaccounting/gists{/gist_id}","starred_url":"https://api.github.com/users/waveaccounting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveaccounting/subscriptions","organizations_url":"https://api.github.com/users/waveaccounting/orgs","repos_url":"https://api.github.com/users/waveaccounting/repos","events_url":"https://api.github.com/users/waveaccounting/events{/privacy}","received_events_url":"https://api.github.com/users/waveaccounting/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/waveaccounting/event-sourcing-example","description":null,"fork":false,"url":"https://api.github.com/repos/waveaccounting/event-sourcing-example","forks_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/forks","keys_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/teams","hooks_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/hooks","issue_events_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues/events{/number}","events_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/events","assignees_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/assignees{/user}","branches_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/branches{/branch}","tags_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/tags","blobs_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/statuses/{sha}","languages_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/languages","stargazers_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/stargazers","contributors_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/contributors","subscribers_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/subscribers","subscription_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/subscription","commits_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/contents/{+path}","compare_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/merges","archive_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/downloads","issues_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues{/number}","pulls_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls{/number}","milestones_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/milestones{/number}","notifications_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/labels{/name}","releases_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/releases{/id}","deployments_url":"https://api.github.com/repos/waveaccounting/event-sourcing-example/deployments","created_at":"2016-11-14T14:56:09Z","updated_at":"2016-11-14T15:10:28Z","pushed_at":"2016-11-14T19:15:31Z","git_url":"git://github.com/waveaccounting/event-sourcing-example.git","ssh_url":"git@github.com:waveaccounting/event-sourcing-example.git","clone_url":"https://github.com/waveaccounting/event-sourcing-example.git","svn_url":"https://github.com/waveaccounting/event-sourcing-example","homepage":null,"size":9,"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/waveaccounting/event-sourcing-example/pulls/3"},"html":{"href":"https://github.com/waveaccounting/event-sourcing-example/pull/3"},"issue":{"href":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues/3"},"comments":{"href":"https://api.github.com/repos/waveaccounting/event-sourcing-example/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/waveaccounting/event-sourcing-example/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/waveaccounting/event-sourcing-example/statuses/b1e4ab4bb21ef19b6d00cf4764dc8a53176d39e4"}}}}
{"actor":{"display_login":"can-z"}}