Fix expected path in test

This commit is contained in:
Arik Fraimovich
2015-12-28 15:10:42 +02:00
parent 99ed076c0c
commit 1a748c2141

View File

@@ -318,7 +318,7 @@ class TestLogin(BaseTestCase):
with app.test_client() as c, patch.object(settings, 'PASSWORD_LOGIN_ENABLED', False):
rv = c.get('/login')
self.assertEquals(rv.status_code, 302)
self.assertTrue(rv.location.endswith(url_for('google_oauth.authorize')))
self.assertTrue(rv.location.endswith(url_for('google_oauth.authorize', next='/')))
def test_get_login_form(self):
with app.test_client() as c: