* removed unused test_auth.py
* correctly handle logout
This commit is contained in:
parent
55124e861f
commit
ade660419c
2 changed files with 3 additions and 7 deletions
|
@ -18,5 +18,8 @@ class LoginController(BaseController):
|
||||||
return render('/main.mako')
|
return render('/main.mako')
|
||||||
|
|
||||||
def logout(self):
|
def logout(self):
|
||||||
|
return redirect_to(action = 'loggedout')
|
||||||
|
|
||||||
|
def loggedout(self):
|
||||||
c.messages['messages'].append('You are logged out.')
|
c.messages['messages'].append('You are logged out.')
|
||||||
return render('/main.mako')
|
return render('/main.mako')
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
from gnuviechadminweb.tests import *
|
|
||||||
|
|
||||||
class TestAuthController(TestController):
|
|
||||||
|
|
||||||
def test_index(self):
|
|
||||||
response = self.app.get(url_for(controller='auth'))
|
|
||||||
# Test response...
|
|
Loading…
Reference in a new issue