{"action":"created","comment":{"url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/comments/70457304","id":70457304,"diff_hunk":"@@ -132,6 +140,37 @@ def test_serial_execute_transaction(self):\n         self.assertEqual(1, stmts[2].data[0][0])\n \n \n+class StatementListTestVacuum(unittest.TestCase):\n+\n+    def setUp(self):\n+        # Create a postgres database in a temp directory.\n+        self.postgresql = Postgresql()\n+        self.dburi = self.postgresql.url()\n+        self.conn_str = make_conn_str(self.dburi)\n+        # Reset the log handler.\n+        handler.reset()\n+\n+    def tearDown(self):\n+        # Destroy the postgres database.\n+        self.postgresql.stop()\n+\n+    def test_serial_execute_vacuum_transaction(self):\n+        stmts = StatementList()\n+        stmts.append(Statement('VACUUM'))\n+        stmts.serial_execute(self.conn_str, True)\n+\n+        self.assertIn('VACUUM cannot run inside a transaction block',","path":"pedsnetdcc/tests/db_test.py","position":38,"original_position":38,"commit_id":"ac872c0c98d54509789ecf9aaeb2e7efcf75db06","original_commit_id":"ac872c0c98d54509789ecf9aaeb2e7efcf75db06","user":{"login":"aaron0browne","id":3409975,"avatar_url":"https://avatars.githubusercontent.com/u/3409975?v=3","gravatar_id":"","url":"https://api.github.com/users/aaron0browne","html_url":"https://github.com/aaron0browne","followers_url":"https://api.github.com/users/aaron0browne/followers","following_url":"https://api.github.com/users/aaron0browne/following{/other_user}","gists_url":"https://api.github.com/users/aaron0browne/gists{/gist_id}","starred_url":"https://api.github.com/users/aaron0browne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaron0browne/subscriptions","organizations_url":"https://api.github.com/users/aaron0browne/orgs","repos_url":"https://api.github.com/users/aaron0browne/repos","events_url":"https://api.github.com/users/aaron0browne/events{/privacy}","received_events_url":"https://api.github.com/users/aaron0browne/received_events","type":"User","site_admin":false},"body":"I believe that `assertIn` was added in python 3.2, so this should be `self.assertTrue(foo in bar)` for python 2 compatibility.","created_at":"2016-07-12T15:06:02Z","updated_at":"2016-07-12T15:06:02Z","html_url":"https://github.com/PEDSnet/pedsnetdcc/pull/20#discussion_r70457304","pull_request_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/comments/70457304"},"html":{"href":"https://github.com/PEDSnet/pedsnetdcc/pull/20#discussion_r70457304"},"pull_request":{"href":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/20","id":75711078,"html_url":"https://github.com/PEDSnet/pedsnetdcc/pull/20","diff_url":"https://github.com/PEDSnet/pedsnetdcc/pull/20.diff","patch_url":"https://github.com/PEDSnet/pedsnetdcc/pull/20.patch","issue_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues/20","number":20,"state":"open","locked":false,"title":"Add prepare_database function in prepdb.py","user":{"login":"murphyke","id":928642,"avatar_url":"https://avatars.githubusercontent.com/u/928642?v=3","gravatar_id":"","url":"https://api.github.com/users/murphyke","html_url":"https://github.com/murphyke","followers_url":"https://api.github.com/users/murphyke/followers","following_url":"https://api.github.com/users/murphyke/following{/other_user}","gists_url":"https://api.github.com/users/murphyke/gists{/gist_id}","starred_url":"https://api.github.com/users/murphyke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murphyke/subscriptions","organizations_url":"https://api.github.com/users/murphyke/orgs","repos_url":"https://api.github.com/users/murphyke/repos","events_url":"https://api.github.com/users/murphyke/events{/privacy}","received_events_url":"https://api.github.com/users/murphyke/received_events","type":"User","site_admin":false},"body":"Fix #3","created_at":"2016-06-29T19:57:12Z","updated_at":"2016-07-12T15:06:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f179b3687f69567231df8eff69eea706ce7cbb02","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/20/commits","review_comments_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/20/comments","review_comment_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues/20/comments","statuses_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/statuses/ac872c0c98d54509789ecf9aaeb2e7efcf75db06","head":{"label":"PEDSnet:prepdb","ref":"prepdb","sha":"ac872c0c98d54509789ecf9aaeb2e7efcf75db06","user":{"login":"PEDSnet","id":7228066,"avatar_url":"https://avatars.githubusercontent.com/u/7228066?v=3","gravatar_id":"","url":"https://api.github.com/users/PEDSnet","html_url":"https://github.com/PEDSnet","followers_url":"https://api.github.com/users/PEDSnet/followers","following_url":"https://api.github.com/users/PEDSnet/following{/other_user}","gists_url":"https://api.github.com/users/PEDSnet/gists{/gist_id}","starred_url":"https://api.github.com/users/PEDSnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PEDSnet/subscriptions","organizations_url":"https://api.github.com/users/PEDSnet/orgs","repos_url":"https://api.github.com/users/PEDSnet/repos","events_url":"https://api.github.com/users/PEDSnet/events{/privacy}","received_events_url":"https://api.github.com/users/PEDSnet/received_events","type":"Organization","site_admin":false},"repo":{"id":61126517,"name":"pedsnetdcc","full_name":"PEDSnet/pedsnetdcc","owner":{"login":"PEDSnet","id":7228066,"avatar_url":"https://avatars.githubusercontent.com/u/7228066?v=3","gravatar_id":"","url":"https://api.github.com/users/PEDSnet","html_url":"https://github.com/PEDSnet","followers_url":"https://api.github.com/users/PEDSnet/followers","following_url":"https://api.github.com/users/PEDSnet/following{/other_user}","gists_url":"https://api.github.com/users/PEDSnet/gists{/gist_id}","starred_url":"https://api.github.com/users/PEDSnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PEDSnet/subscriptions","organizations_url":"https://api.github.com/users/PEDSnet/orgs","repos_url":"https://api.github.com/users/PEDSnet/repos","events_url":"https://api.github.com/users/PEDSnet/events{/privacy}","received_events_url":"https://api.github.com/users/PEDSnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PEDSnet/pedsnetdcc","description":"CLI tool for PEDSnet data coordinating center ETL tasks","fork":false,"url":"https://api.github.com/repos/PEDSnet/pedsnetdcc","forks_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/forks","keys_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/teams","hooks_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/hooks","issue_events_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues/events{/number}","events_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/events","assignees_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/assignees{/user}","branches_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/branches{/branch}","tags_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/tags","blobs_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/refs{/sha}","trees_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/statuses/{sha}","languages_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/languages","stargazers_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/stargazers","contributors_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/contributors","subscribers_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/subscribers","subscription_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/subscription","commits_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/commits{/sha}","git_commits_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/commits{/sha}","comments_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/comments{/number}","issue_comment_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues/comments{/number}","contents_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/contents/{+path}","compare_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/merges","archive_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/downloads","issues_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues{/number}","pulls_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls{/number}","milestones_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/milestones{/number}","notifications_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/labels{/name}","releases_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/releases{/id}","deployments_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/deployments","created_at":"2016-06-14T13:48:09Z","updated_at":"2016-06-20T20:46:28Z","pushed_at":"2016-07-12T14:27:26Z","git_url":"git://github.com/PEDSnet/pedsnetdcc.git","ssh_url":"git@github.com:PEDSnet/pedsnetdcc.git","clone_url":"https://github.com/PEDSnet/pedsnetdcc.git","svn_url":"https://github.com/PEDSnet/pedsnetdcc","homepage":null,"size":80,"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":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"PEDSnet:master","ref":"master","sha":"1a3112ab4111609a969d19b6ad2fc8d4e18052fc","user":{"login":"PEDSnet","id":7228066,"avatar_url":"https://avatars.githubusercontent.com/u/7228066?v=3","gravatar_id":"","url":"https://api.github.com/users/PEDSnet","html_url":"https://github.com/PEDSnet","followers_url":"https://api.github.com/users/PEDSnet/followers","following_url":"https://api.github.com/users/PEDSnet/following{/other_user}","gists_url":"https://api.github.com/users/PEDSnet/gists{/gist_id}","starred_url":"https://api.github.com/users/PEDSnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PEDSnet/subscriptions","organizations_url":"https://api.github.com/users/PEDSnet/orgs","repos_url":"https://api.github.com/users/PEDSnet/repos","events_url":"https://api.github.com/users/PEDSnet/events{/privacy}","received_events_url":"https://api.github.com/users/PEDSnet/received_events","type":"Organization","site_admin":false},"repo":{"id":61126517,"name":"pedsnetdcc","full_name":"PEDSnet/pedsnetdcc","owner":{"login":"PEDSnet","id":7228066,"avatar_url":"https://avatars.githubusercontent.com/u/7228066?v=3","gravatar_id":"","url":"https://api.github.com/users/PEDSnet","html_url":"https://github.com/PEDSnet","followers_url":"https://api.github.com/users/PEDSnet/followers","following_url":"https://api.github.com/users/PEDSnet/following{/other_user}","gists_url":"https://api.github.com/users/PEDSnet/gists{/gist_id}","starred_url":"https://api.github.com/users/PEDSnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PEDSnet/subscriptions","organizations_url":"https://api.github.com/users/PEDSnet/orgs","repos_url":"https://api.github.com/users/PEDSnet/repos","events_url":"https://api.github.com/users/PEDSnet/events{/privacy}","received_events_url":"https://api.github.com/users/PEDSnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PEDSnet/pedsnetdcc","description":"CLI tool for PEDSnet data coordinating center ETL tasks","fork":false,"url":"https://api.github.com/repos/PEDSnet/pedsnetdcc","forks_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/forks","keys_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/teams","hooks_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/hooks","issue_events_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues/events{/number}","events_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/events","assignees_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/assignees{/user}","branches_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/branches{/branch}","tags_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/tags","blobs_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/refs{/sha}","trees_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/statuses/{sha}","languages_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/languages","stargazers_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/stargazers","contributors_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/contributors","subscribers_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/subscribers","subscription_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/subscription","commits_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/commits{/sha}","git_commits_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/git/commits{/sha}","comments_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/comments{/number}","issue_comment_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues/comments{/number}","contents_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/contents/{+path}","compare_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/merges","archive_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/downloads","issues_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues{/number}","pulls_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls{/number}","milestones_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/milestones{/number}","notifications_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/labels{/name}","releases_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/releases{/id}","deployments_url":"https://api.github.com/repos/PEDSnet/pedsnetdcc/deployments","created_at":"2016-06-14T13:48:09Z","updated_at":"2016-06-20T20:46:28Z","pushed_at":"2016-07-12T14:27:26Z","git_url":"git://github.com/PEDSnet/pedsnetdcc.git","ssh_url":"git@github.com:PEDSnet/pedsnetdcc.git","clone_url":"https://github.com/PEDSnet/pedsnetdcc.git","svn_url":"https://github.com/PEDSnet/pedsnetdcc","homepage":null,"size":80,"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":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/20"},"html":{"href":"https://github.com/PEDSnet/pedsnetdcc/pull/20"},"issue":{"href":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues/20"},"comments":{"href":"https://api.github.com/repos/PEDSnet/pedsnetdcc/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PEDSnet/pedsnetdcc/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/PEDSnet/pedsnetdcc/statuses/ac872c0c98d54509789ecf9aaeb2e7efcf75db06"}}}}
{"actor":{"display_login":"aaron0browne"}}