Commits

Gael Pasgrimaud committed a291095

fix test_shabti_auth

  • Participants
  • Parent commits 781337b

Comments (0)

Files changed (2)

shabti/templates/auth/+package+/lib/auth/__init__.py_tmpl

     session.delete()
 
 def redirect_to_login():
-    redirect(url(controller=_login_url))
+    redirect(url(controller=_login_url, action='index'))
 
 # --- Added by Shabti auth template
 

shabti/templates/auth/+package+/tests/functional/test_login.py_tmpl

 class TestLoginController(TestController):
     def test_index(self):
         """TestLoginController (auth): check login page is presented"""
-        response = self.app.get(url(controller='login'))
+        response = self.app.get(url(controller='login', action='index'))
         assert 'action="/login/signin"' in response
     
 # --- Added by Shabti auth template