diff MoinMoin/conftest.py @ 4212:1ca179133f01

Fix tests: small fixes after merge
author Florian Krupicka <florian.krupicka@googlemail.com>
date Wed, 09 Jul 2008 21:53:52 +0200
parents 42660b499488
children b231877df090
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Wed Jul 09 21:48:04 2008 +0200
+++ b/MoinMoin/conftest.py	Wed Jul 09 21:53:52 2008 +0200
@@ -36,6 +36,8 @@
 sys.path.insert(0, str(moindir.join("tests")))
 
 from MoinMoin.support.python_compatibility import set
+from MoinMoin.web.request import TestRequest
+from MoinMoin.wsgiapp import init as request_init
 
 coverage_modules = set()
 
@@ -71,12 +73,10 @@
 
 
 def init_test_request(static_state=[False]):
-    from MoinMoin.web.request import create_request
-    from MoinMoin.wsgiapp import init as request_init
     if not static_state[0]:
         maketestwiki.run(True)
         static_state[0] = True
-    request = create_request()
+    request = TestRequest()
     request = request_init(request)
     return request