incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#7215] Skip trove update events during test setup, for performance
Date Tue, 25 Feb 2014 20:32:36 GMT
Repository: incubator-allura
Updated Branches:
  refs/heads/master 17eba62c6 -> e3af39b3e


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

Signed-off-by: Cory Johns <cjohns@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/master
Commit: e3af39b3e4a7737164bf96a63bc88b296ff375d6
Parents: 17eba62
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Tue Feb 25 19:11:20 2014 +0000
Committer: Cory Johns <cjohns@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'):


Mime
View raw message