web/test/unittest_application.py
changeset 10331 6f25c7e4f19b
parent 10080 bc7c3b0f439b
child 10356 a009a31fb1ea
--- a/web/test/unittest_application.py	Fri Mar 13 16:57:32 2015 +0100
+++ b/web/test/unittest_application.py	Tue Jun 03 16:57:14 2014 +0200
@@ -30,7 +30,6 @@
 from cubicweb.web import LogOut, Redirect, INTERNAL_FIELD_VALUE
 from cubicweb.web.views.basecontrollers import ViewController
 from cubicweb.web.application import anonymized_request
-from cubicweb.dbapi import DBAPISession, _NeedAuthAccessMock
 from cubicweb import repoapi
 
 class FakeMapping:
@@ -368,10 +367,6 @@
         req.set_request_header('Cookie', cookie[sessioncookie].OutputString(),
                                raw=True)
         clear_cache(req, 'get_authorization')
-        # reset session as if it was a new incoming request
-        req.session = DBAPISession(None)
-        req.user = req.cnx = _NeedAuthAccessMock
-        
 
     def _test_auth_anon(self, req):
         asession = self.app.get_session(req)