tests: update for new login url

This commit is contained in:
Frédéric Péters 2015-01-30 12:04:10 +01:00
parent 116da72863
commit c1f3ccb435
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ def admin_user():
return user
def login(app, username='admin', password='admin'):
login_page = app.get('/accounts/login/')
login_page = app.get('/login/')
login_form = login_page.forms[0]
login_form['username'] = username
login_form['password'] = password
@ -27,7 +27,7 @@ def login(app, username='admin', password='admin'):
def test_unlogged_access():
# connect while not being logged in
app = TestApp(get_wsgi_application())
assert app.get('/manage/', status=302).location == 'http://localhost:80/accounts/login/?next=/manage/'
assert app.get('/manage/', status=302).location == 'http://localhost:80/login/?next=/manage/'
def test_access(admin_user):
app = login(TestApp(get_wsgi_application()))