changeset 4998:d0c9c13dbeda

Xapian2009: Xapian index location is not hardcoded in tests.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Tue, 11 Aug 2009 23:38:09 +0200
parents 8b51025823e0
children b73ced174002
files MoinMoin/search/_tests/test_search.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/_tests/test_search.py	Tue Aug 11 23:28:19 2009 +0200
+++ b/MoinMoin/search/_tests/test_search.py	Tue Aug 11 23:38:09 2009 +0200
@@ -8,7 +8,7 @@
 """
 
 
-import py
+import py, os
 
 from MoinMoin.search import QueryError
 from MoinMoin.search.queryparser import QueryParser
@@ -267,7 +267,7 @@
 
     def get_moin_search_connection(self):
         from MoinMoin.search.Xapian import MoinSearchConnection
-        return  MoinSearchConnection('tests/wiki/data/cache/xapian/index') # XXX Index location should not be hardcoded!
+        return  MoinSearchConnection(os.path.join(self.request.cfg.cache_dir, 'xapian/index'))
 
     def setup_method(self, method):