changeset 3421:d71aa6092994

queryparser tests: import QueryParser without detour
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sun, 23 Mar 2008 00:54:09 +0100
parents 28dc1b4b53ad
children b9c90178b93a
files MoinMoin/search/_tests/test_search.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/_tests/test_search.py	Sun Mar 23 00:02:54 2008 +0100
+++ b/MoinMoin/search/_tests/test_search.py	Sun Mar 23 00:54:09 2008 +0100
@@ -9,6 +9,7 @@
 
 import py
 
+from MoinMoin.search.queryparser import QueryParser
 from MoinMoin import search
 
 
@@ -17,7 +18,7 @@
 
     def testQueryParser(self):
         """ search: test the query parser """
-        parser = search.QueryParser()
+        parser = QueryParser()
         for query, wanted in [
             ("a", '"a"'),
             ("a b", '["a" "b"]'),
@@ -56,7 +57,7 @@
 
     def testQueryParserExceptions(self):
         """ search: test the query parser """
-        parser = search.QueryParser()
+        parser = QueryParser()
         def _test(q):
             py.test.raises(ValueError, parser.parse_query, q)
         for query in ['""', '(', ')', '(a or b']: