{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/comments/75122529","id":75122529,"diff_hunk":"@@ -134,8 +134,10 @@ def main(args):\n         except openerp.service.db.DatabaseExists:\n             pass\n \n-    if config[\"test_file\"]:\n-        config[\"test_enable\"] = True\n+    # OpenUpgrade: don't run post tests if --test-enable is not specified\n+    # explicitely (problematic when when loading test_data with --test-commit)","path":"openerp/cli/server.py","position":null,"original_position":7,"commit_id":"b1f134aeae8f0120235131b5a6dc8059ecc87c85","original_commit_id":"15163db1cc5bb61c2ef94015673d7a0094c232ce","user":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"body":"Fixed!","created_at":"2016-08-17T13:33:13Z","updated_at":"2016-08-17T13:33:13Z","html_url":"https://github.com/OCA/OpenUpgrade/pull/627#discussion_r75122529","pull_request_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/627","_links":{"self":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/comments/75122529"},"html":{"href":"https://github.com/OCA/OpenUpgrade/pull/627#discussion_r75122529"},"pull_request":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/627"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/627","id":81559671,"html_url":"https://github.com/OCA/OpenUpgrade/pull/627","diff_url":"https://github.com/OCA/OpenUpgrade/pull/627.diff","patch_url":"https://github.com/OCA/OpenUpgrade/pull/627.patch","issue_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/627","number":627,"state":"open","locked":false,"title":"[ADD] Allow to run test file without post tests","user":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"body":"The OpenUpgrade test mechanism should be able to load test data more dynamically and incrementally. It uses --test-file + --test-commit to load these files. However, the post tests cannot be committed multiple times so I am proposing to skip these tests when only using --test-file without --test-enable.\r\n\r\nI have also proposed this into Odoo as a general improvement as https://github.com/odoo/odoo/pull/13146. \r\n\r\nThis change is a prerequisite for https://github.com/OCA/OpenUpgrade/pull/624, which allows Travis to apply test data for the migration of 8.0 to 9.0 that is included in the 9.0 distribution (so that test data can be added in the same PR as the migration scripts).","created_at":"2016-08-16T23:03:58Z","updated_at":"2016-08-17T13:33:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e65f8eec4d0675c2a0894a9f271b4dcdfb29931","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/milestones/2","html_url":"https://github.com/OCA/OpenUpgrade/milestones/8.0","labels_url":"https://api.github.com/repos/OCA/OpenUpgrade/milestones/2/labels","id":834743,"number":2,"title":"8.0","description":"","creator":{"login":"legalsylvain","id":3407482,"avatar_url":"https://avatars.githubusercontent.com/u/3407482?v=3","gravatar_id":"","url":"https://api.github.com/users/legalsylvain","html_url":"https://github.com/legalsylvain","followers_url":"https://api.github.com/users/legalsylvain/followers","following_url":"https://api.github.com/users/legalsylvain/following{/other_user}","gists_url":"https://api.github.com/users/legalsylvain/gists{/gist_id}","starred_url":"https://api.github.com/users/legalsylvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalsylvain/subscriptions","organizations_url":"https://api.github.com/users/legalsylvain/orgs","repos_url":"https://api.github.com/users/legalsylvain/repos","events_url":"https://api.github.com/users/legalsylvain/events{/privacy}","received_events_url":"https://api.github.com/users/legalsylvain/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":112,"state":"open","created_at":"2014-10-21T17:03:06Z","updated_at":"2016-08-16T23:06:00Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/627/commits","review_comments_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/627/comments","review_comment_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/627/comments","statuses_url":"https://api.github.com/repos/OCA/OpenUpgrade/statuses/b1f134aeae8f0120235131b5a6dc8059ecc87c85","head":{"label":"StefanRijnhart:8.0-test_file_without_post_tests","ref":"8.0-test_file_without_post_tests","sha":"b1f134aeae8f0120235131b5a6dc8059ecc87c85","user":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"repo":{"id":20320697,"name":"OpenUpgrade","full_name":"StefanRijnhart/OpenUpgrade","owner":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StefanRijnhart/OpenUpgrade","description":"Open source upgrade path for Odoo/OpenERP","fork":true,"url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade","forks_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/forks","keys_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/teams","hooks_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/hooks","issue_events_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/issues/events{/number}","events_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/events","assignees_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/assignees{/user}","branches_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/branches{/branch}","tags_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/tags","blobs_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/refs{/sha}","trees_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/statuses/{sha}","languages_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/languages","stargazers_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/stargazers","contributors_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/contributors","subscribers_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/subscribers","subscription_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/subscription","commits_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/commits{/sha}","git_commits_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/commits{/sha}","comments_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/comments{/number}","issue_comment_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/issues/comments{/number}","contents_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/contents/{+path}","compare_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/merges","archive_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/downloads","issues_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/issues{/number}","pulls_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/pulls{/number}","milestones_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/milestones{/number}","notifications_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/labels{/name}","releases_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/releases{/id}","deployments_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/deployments","created_at":"2014-05-30T07:26:39Z","updated_at":"2015-10-02T00:41:36Z","pushed_at":"2016-08-17T13:33:10Z","git_url":"git://github.com/StefanRijnhart/OpenUpgrade.git","ssh_url":"git@github.com:StefanRijnhart/OpenUpgrade.git","clone_url":"https://github.com/StefanRijnhart/OpenUpgrade.git","svn_url":"https://github.com/StefanRijnhart/OpenUpgrade","homepage":"https://doc.therp.nl/openupgrade","size":1026867,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"OCA:9.0","ref":"9.0","sha":"7a431c3241f6b36aa387c129c10eff9afa5ce80a","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":19951562,"name":"OpenUpgrade","full_name":"OCA/OpenUpgrade","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/OpenUpgrade","description":"Open source upgrade path for Odoo/OpenERP","fork":false,"url":"https://api.github.com/repos/OCA/OpenUpgrade","forks_url":"https://api.github.com/repos/OCA/OpenUpgrade/forks","keys_url":"https://api.github.com/repos/OCA/OpenUpgrade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/OpenUpgrade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/OpenUpgrade/teams","hooks_url":"https://api.github.com/repos/OCA/OpenUpgrade/hooks","issue_events_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/OpenUpgrade/events","assignees_url":"https://api.github.com/repos/OCA/OpenUpgrade/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/OpenUpgrade/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/OpenUpgrade/tags","blobs_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/OpenUpgrade/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/OpenUpgrade/languages","stargazers_url":"https://api.github.com/repos/OCA/OpenUpgrade/stargazers","contributors_url":"https://api.github.com/repos/OCA/OpenUpgrade/contributors","subscribers_url":"https://api.github.com/repos/OCA/OpenUpgrade/subscribers","subscription_url":"https://api.github.com/repos/OCA/OpenUpgrade/subscription","commits_url":"https://api.github.com/repos/OCA/OpenUpgrade/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/OpenUpgrade/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/OpenUpgrade/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/OpenUpgrade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/OpenUpgrade/merges","archive_url":"https://api.github.com/repos/OCA/OpenUpgrade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/OpenUpgrade/downloads","issues_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/OpenUpgrade/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/OpenUpgrade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/OpenUpgrade/labels{/name}","releases_url":"https://api.github.com/repos/OCA/OpenUpgrade/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/OpenUpgrade/deployments","created_at":"2014-05-19T17:45:43Z","updated_at":"2016-08-15T20:55:09Z","pushed_at":"2016-08-17T13:33:11Z","git_url":"git://github.com/OCA/OpenUpgrade.git","ssh_url":"git@github.com:OCA/OpenUpgrade.git","clone_url":"https://github.com/OCA/OpenUpgrade.git","svn_url":"https://github.com/OCA/OpenUpgrade","homepage":"https://doc.therp.nl/openupgrade","size":1375482,"stargazers_count":144,"watchers_count":144,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":169,"mirror_url":null,"open_issues_count":24,"forks":169,"open_issues":24,"watchers":144,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/627"},"html":{"href":"https://github.com/OCA/OpenUpgrade/pull/627"},"issue":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/issues/627"},"comments":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/issues/627/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/627/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/627/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/statuses/b1f134aeae8f0120235131b5a6dc8059ecc87c85"}}}}
{"actor":{"display_login":"StefanRijnhart"}}