incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#2835] fix test setup
Date Mon, 29 Apr 2013 14:16:38 GMT
Updated Branches:
  refs/heads/master 69d757538 -> f2c347527


[#2835] fix test setup


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

Branch: refs/heads/master
Commit: f2c34752741fdfe19c53ce774bcd9f89c167415c
Parents: 69d7575
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Mon Apr 29 14:16:31 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Apr 29 14:16:31 2013 +0000

----------------------------------------------------------------------
 Allura/allura/tests/unit/test_solr.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f2c34752/Allura/allura/tests/unit/test_solr.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/unit/test_solr.py b/Allura/allura/tests/unit/test_solr.py
index f431ea3..b3dee43 100644
--- a/Allura/allura/tests/unit/test_solr.py
+++ b/Allura/allura/tests/unit/test_solr.py
@@ -23,6 +23,7 @@ from markupsafe import Markup
 
 from allura.lib import helpers as h
 from allura.tests import decorators as td
+from alluratest.controller import setup_basic_test
 from allura.lib.solr import Solr
 from allura.lib.search import solarize, search_app
 
@@ -83,6 +84,10 @@ class TestSolarize(unittest.TestCase):
 
 class TestSearch_app(unittest.TestCase):
 
+    def setUp(self):
+        # need to create the "test" project so @td.with_wiki works
+        setup_basic_test()
+
     @td.with_wiki
     @mock.patch('allura.lib.search.url')
     @mock.patch('allura.lib.search.request')


Mime
View raw message