{"action":"created","comment":{"url":"https://api.github.com/repos/bhanderson/pbnh/pulls/comments/61448503","id":61448503,"diff_hunk":"@@ -0,0 +1,86 @@\n+#!/usr/bin/python3\n+import pycurl\n+import unittest\n+import json\n+import hashlib\n+import tempfile\n+import os\n+\n+from pbnh import conf\n+from pbnh import app\n+\n+config = conf.get_config().get('server')\n+host = config.get('bind_ip')\n+port = config.get('bind_port')\n+URL = 'http://{}:{}/'.format(host, port)\n+\n+\n+class TestPost(unittest.TestCase):\n+    def setUp(self):\n+        self.c = pycurl.Curl()\n+        self.c.setopt(pycurl.URL, URL)\n+        self.db_fd, app.app.config['DATABASE'] = tempfile.mkstemp()","path":"pbnh/tests/paste_curl_test.py","position":22,"original_position":22,"commit_id":"7af60fc38a63e87c2bfc79c0253ff3f7d13c5027","original_commit_id":"3d193ad3850773f7fae5a5a165f47931536490fd","user":{"login":"Endi1","id":5697907,"avatar_url":"https://avatars.githubusercontent.com/u/5697907?v=3","gravatar_id":"","url":"https://api.github.com/users/Endi1","html_url":"https://github.com/Endi1","followers_url":"https://api.github.com/users/Endi1/followers","following_url":"https://api.github.com/users/Endi1/following{/other_user}","gists_url":"https://api.github.com/users/Endi1/gists{/gist_id}","starred_url":"https://api.github.com/users/Endi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Endi1/subscriptions","organizations_url":"https://api.github.com/users/Endi1/orgs","repos_url":"https://api.github.com/users/Endi1/repos","events_url":"https://api.github.com/users/Endi1/events{/privacy}","received_events_url":"https://api.github.com/users/Endi1/received_events","type":"User","site_admin":false},"body":"Isn't the sqlite db referenced in `views.py`?","created_at":"2016-04-28T15:28:38Z","updated_at":"2016-04-28T15:28:38Z","html_url":"https://github.com/bhanderson/pbnh/pull/29#discussion_r61448503","pull_request_url":"https://api.github.com/repos/bhanderson/pbnh/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/bhanderson/pbnh/pulls/comments/61448503"},"html":{"href":"https://github.com/bhanderson/pbnh/pull/29#discussion_r61448503"},"pull_request":{"href":"https://api.github.com/repos/bhanderson/pbnh/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/bhanderson/pbnh/pulls/29","id":68225048,"html_url":"https://github.com/bhanderson/pbnh/pull/29","diff_url":"https://github.com/bhanderson/pbnh/pull/29.diff","patch_url":"https://github.com/bhanderson/pbnh/pull/29.patch","issue_url":"https://api.github.com/repos/bhanderson/pbnh/issues/29","number":29,"state":"open","locked":false,"title":"Unit test for curl spins up a temporary sqlite db","user":{"login":"Endi1","id":5697907,"avatar_url":"https://avatars.githubusercontent.com/u/5697907?v=3","gravatar_id":"","url":"https://api.github.com/users/Endi1","html_url":"https://github.com/Endi1","followers_url":"https://api.github.com/users/Endi1/followers","following_url":"https://api.github.com/users/Endi1/following{/other_user}","gists_url":"https://api.github.com/users/Endi1/gists{/gist_id}","starred_url":"https://api.github.com/users/Endi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Endi1/subscriptions","organizations_url":"https://api.github.com/users/Endi1/orgs","repos_url":"https://api.github.com/users/Endi1/repos","events_url":"https://api.github.com/users/Endi1/events{/privacy}","received_events_url":"https://api.github.com/users/Endi1/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-28T13:59:36Z","updated_at":"2016-04-28T15:28:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a303d03228d1fa2047dd9a4717a998960acbbb6c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bhanderson/pbnh/pulls/29/commits","review_comments_url":"https://api.github.com/repos/bhanderson/pbnh/pulls/29/comments","review_comment_url":"https://api.github.com/repos/bhanderson/pbnh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bhanderson/pbnh/issues/29/comments","statuses_url":"https://api.github.com/repos/bhanderson/pbnh/statuses/7af60fc38a63e87c2bfc79c0253ff3f7d13c5027","head":{"label":"Endi1:master","ref":"master","sha":"7af60fc38a63e87c2bfc79c0253ff3f7d13c5027","user":{"login":"Endi1","id":5697907,"avatar_url":"https://avatars.githubusercontent.com/u/5697907?v=3","gravatar_id":"","url":"https://api.github.com/users/Endi1","html_url":"https://github.com/Endi1","followers_url":"https://api.github.com/users/Endi1/followers","following_url":"https://api.github.com/users/Endi1/following{/other_user}","gists_url":"https://api.github.com/users/Endi1/gists{/gist_id}","starred_url":"https://api.github.com/users/Endi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Endi1/subscriptions","organizations_url":"https://api.github.com/users/Endi1/orgs","repos_url":"https://api.github.com/users/Endi1/repos","events_url":"https://api.github.com/users/Endi1/events{/privacy}","received_events_url":"https://api.github.com/users/Endi1/received_events","type":"User","site_admin":false},"repo":{"id":57303756,"name":"pbnh","full_name":"Endi1/pbnh","owner":{"login":"Endi1","id":5697907,"avatar_url":"https://avatars.githubusercontent.com/u/5697907?v=3","gravatar_id":"","url":"https://api.github.com/users/Endi1","html_url":"https://github.com/Endi1","followers_url":"https://api.github.com/users/Endi1/followers","following_url":"https://api.github.com/users/Endi1/following{/other_user}","gists_url":"https://api.github.com/users/Endi1/gists{/gist_id}","starred_url":"https://api.github.com/users/Endi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Endi1/subscriptions","organizations_url":"https://api.github.com/users/Endi1/orgs","repos_url":"https://api.github.com/users/Endi1/repos","events_url":"https://api.github.com/users/Endi1/events{/privacy}","received_events_url":"https://api.github.com/users/Endi1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Endi1/pbnh","description":"mix between pb and haste","fork":true,"url":"https://api.github.com/repos/Endi1/pbnh","forks_url":"https://api.github.com/repos/Endi1/pbnh/forks","keys_url":"https://api.github.com/repos/Endi1/pbnh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Endi1/pbnh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Endi1/pbnh/teams","hooks_url":"https://api.github.com/repos/Endi1/pbnh/hooks","issue_events_url":"https://api.github.com/repos/Endi1/pbnh/issues/events{/number}","events_url":"https://api.github.com/repos/Endi1/pbnh/events","assignees_url":"https://api.github.com/repos/Endi1/pbnh/assignees{/user}","branches_url":"https://api.github.com/repos/Endi1/pbnh/branches{/branch}","tags_url":"https://api.github.com/repos/Endi1/pbnh/tags","blobs_url":"https://api.github.com/repos/Endi1/pbnh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Endi1/pbnh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Endi1/pbnh/git/refs{/sha}","trees_url":"https://api.github.com/repos/Endi1/pbnh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Endi1/pbnh/statuses/{sha}","languages_url":"https://api.github.com/repos/Endi1/pbnh/languages","stargazers_url":"https://api.github.com/repos/Endi1/pbnh/stargazers","contributors_url":"https://api.github.com/repos/Endi1/pbnh/contributors","subscribers_url":"https://api.github.com/repos/Endi1/pbnh/subscribers","subscription_url":"https://api.github.com/repos/Endi1/pbnh/subscription","commits_url":"https://api.github.com/repos/Endi1/pbnh/commits{/sha}","git_commits_url":"https://api.github.com/repos/Endi1/pbnh/git/commits{/sha}","comments_url":"https://api.github.com/repos/Endi1/pbnh/comments{/number}","issue_comment_url":"https://api.github.com/repos/Endi1/pbnh/issues/comments{/number}","contents_url":"https://api.github.com/repos/Endi1/pbnh/contents/{+path}","compare_url":"https://api.github.com/repos/Endi1/pbnh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Endi1/pbnh/merges","archive_url":"https://api.github.com/repos/Endi1/pbnh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Endi1/pbnh/downloads","issues_url":"https://api.github.com/repos/Endi1/pbnh/issues{/number}","pulls_url":"https://api.github.com/repos/Endi1/pbnh/pulls{/number}","milestones_url":"https://api.github.com/repos/Endi1/pbnh/milestones{/number}","notifications_url":"https://api.github.com/repos/Endi1/pbnh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Endi1/pbnh/labels{/name}","releases_url":"https://api.github.com/repos/Endi1/pbnh/releases{/id}","deployments_url":"https://api.github.com/repos/Endi1/pbnh/deployments","created_at":"2016-04-28T13:24:16Z","updated_at":"2016-04-28T13:24:18Z","pushed_at":"2016-04-28T14:40:27Z","git_url":"git://github.com/Endi1/pbnh.git","ssh_url":"git@github.com:Endi1/pbnh.git","clone_url":"https://github.com/Endi1/pbnh.git","svn_url":"https://github.com/Endi1/pbnh","homepage":null,"size":863,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"bhanderson:master","ref":"master","sha":"1ed04de36d22c8627b11893700362d1fd8fa2fff","user":{"login":"bhanderson","id":2815531,"avatar_url":"https://avatars.githubusercontent.com/u/2815531?v=3","gravatar_id":"","url":"https://api.github.com/users/bhanderson","html_url":"https://github.com/bhanderson","followers_url":"https://api.github.com/users/bhanderson/followers","following_url":"https://api.github.com/users/bhanderson/following{/other_user}","gists_url":"https://api.github.com/users/bhanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/bhanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhanderson/subscriptions","organizations_url":"https://api.github.com/users/bhanderson/orgs","repos_url":"https://api.github.com/users/bhanderson/repos","events_url":"https://api.github.com/users/bhanderson/events{/privacy}","received_events_url":"https://api.github.com/users/bhanderson/received_events","type":"User","site_admin":false},"repo":{"id":55452403,"name":"pbnh","full_name":"bhanderson/pbnh","owner":{"login":"bhanderson","id":2815531,"avatar_url":"https://avatars.githubusercontent.com/u/2815531?v=3","gravatar_id":"","url":"https://api.github.com/users/bhanderson","html_url":"https://github.com/bhanderson","followers_url":"https://api.github.com/users/bhanderson/followers","following_url":"https://api.github.com/users/bhanderson/following{/other_user}","gists_url":"https://api.github.com/users/bhanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/bhanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhanderson/subscriptions","organizations_url":"https://api.github.com/users/bhanderson/orgs","repos_url":"https://api.github.com/users/bhanderson/repos","events_url":"https://api.github.com/users/bhanderson/events{/privacy}","received_events_url":"https://api.github.com/users/bhanderson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhanderson/pbnh","description":"mix between pb and haste","fork":false,"url":"https://api.github.com/repos/bhanderson/pbnh","forks_url":"https://api.github.com/repos/bhanderson/pbnh/forks","keys_url":"https://api.github.com/repos/bhanderson/pbnh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhanderson/pbnh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhanderson/pbnh/teams","hooks_url":"https://api.github.com/repos/bhanderson/pbnh/hooks","issue_events_url":"https://api.github.com/repos/bhanderson/pbnh/issues/events{/number}","events_url":"https://api.github.com/repos/bhanderson/pbnh/events","assignees_url":"https://api.github.com/repos/bhanderson/pbnh/assignees{/user}","branches_url":"https://api.github.com/repos/bhanderson/pbnh/branches{/branch}","tags_url":"https://api.github.com/repos/bhanderson/pbnh/tags","blobs_url":"https://api.github.com/repos/bhanderson/pbnh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhanderson/pbnh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhanderson/pbnh/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhanderson/pbnh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhanderson/pbnh/statuses/{sha}","languages_url":"https://api.github.com/repos/bhanderson/pbnh/languages","stargazers_url":"https://api.github.com/repos/bhanderson/pbnh/stargazers","contributors_url":"https://api.github.com/repos/bhanderson/pbnh/contributors","subscribers_url":"https://api.github.com/repos/bhanderson/pbnh/subscribers","subscription_url":"https://api.github.com/repos/bhanderson/pbnh/subscription","commits_url":"https://api.github.com/repos/bhanderson/pbnh/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhanderson/pbnh/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhanderson/pbnh/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhanderson/pbnh/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhanderson/pbnh/contents/{+path}","compare_url":"https://api.github.com/repos/bhanderson/pbnh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhanderson/pbnh/merges","archive_url":"https://api.github.com/repos/bhanderson/pbnh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhanderson/pbnh/downloads","issues_url":"https://api.github.com/repos/bhanderson/pbnh/issues{/number}","pulls_url":"https://api.github.com/repos/bhanderson/pbnh/pulls{/number}","milestones_url":"https://api.github.com/repos/bhanderson/pbnh/milestones{/number}","notifications_url":"https://api.github.com/repos/bhanderson/pbnh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhanderson/pbnh/labels{/name}","releases_url":"https://api.github.com/repos/bhanderson/pbnh/releases{/id}","deployments_url":"https://api.github.com/repos/bhanderson/pbnh/deployments","created_at":"2016-04-04T23:21:09Z","updated_at":"2016-04-26T17:33:32Z","pushed_at":"2016-04-28T14:40:27Z","git_url":"git://github.com/bhanderson/pbnh.git","ssh_url":"git@github.com:bhanderson/pbnh.git","clone_url":"https://github.com/bhanderson/pbnh.git","svn_url":"https://github.com/bhanderson/pbnh","homepage":null,"size":854,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bhanderson/pbnh/pulls/29"},"html":{"href":"https://github.com/bhanderson/pbnh/pull/29"},"issue":{"href":"https://api.github.com/repos/bhanderson/pbnh/issues/29"},"comments":{"href":"https://api.github.com/repos/bhanderson/pbnh/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/bhanderson/pbnh/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/bhanderson/pbnh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bhanderson/pbnh/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/bhanderson/pbnh/statuses/7af60fc38a63e87c2bfc79c0253ff3f7d13c5027"}}}}