You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2014/02/25 20:30:24 UTC

git commit: [#7215] Skip trove update events during test setup, for performance

Repository: incubator-allura
Updated Branches:
  refs/heads/cj/7215 [created] e3af39b3e


[#7215] Skip trove update events during test setup, for performance

Signed-off-by: Cory Johns <cj...@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/e3af39b3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e3af39b3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e3af39b3

Branch: refs/heads/cj/7215
Commit: e3af39b3e4a7737164bf96a63bc88b296ff375d6
Parents: 17eba62
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Tue Feb 25 19:11:20 2014 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Tue Feb 25 19:11:20 2014 +0000

----------------------------------------------------------------------
 AlluraTest/alluratest/controller.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e3af39b3/AlluraTest/alluratest/controller.py
----------------------------------------------------------------------
diff --git a/AlluraTest/alluratest/controller.py b/AlluraTest/alluratest/controller.py
index dcd7c53..5e81b37 100644
--- a/AlluraTest/alluratest/controller.py
+++ b/AlluraTest/alluratest/controller.py
@@ -68,8 +68,11 @@ def setup_basic_test(config=None, app_name=DFL_APP_NAME):
         conf_dir = os.getcwd()
     ew.TemplateEngine.initialize({})
     test_file = os.path.join(conf_dir, get_config_file(config))
-    cmd = SetupCommand('setup-app')
-    cmd.run([test_file])
+    with mock.patch.object(M.project.TroveCategoryMapperExtension, 'after_insert'),\
+         mock.patch.object(M.project.TroveCategoryMapperExtension, 'after_update'),\
+         mock.patch.object(M.project.TroveCategoryMapperExtension, 'after_delete'):
+        cmd = SetupCommand('setup-app')
+        cmd.run([test_file])
 
     # run all tasks, e.g. indexing from bootstrap operations
     while M.MonQTask.run_ready('setup'):