tests: use full URL as next URL on login (#18816)

This commit is contained in:
Thomas NOËL 2017-09-21 01:20:24 +02:00
parent 50fbdd8d8e
commit cc5ed49bee
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ def test_page_private_unlogged(app):
page = Page(title='Home', slug='index', template_name='standard', public=False)
page.save()
resp = app.get('/', status=302)
assert resp.location == 'http://testserver/login/?next=/'
assert resp.location == 'http://testserver/login/?next=http%3A//testserver/'
def test_page_private_logged_in(app, admin_user):
Page.objects.all().delete()