tests: adapt to absolute URI for user forms (#39630)
This commit is contained in:
parent
fa3a739a59
commit
6f9b2086f7
|
@ -170,9 +170,9 @@ def test_home_with_user_forms(pub):
|
|||
app = login(get_app(pub), username='foo', password='foo')
|
||||
resp = app.get('/')
|
||||
assert 'Status1' in resp
|
||||
assert '<a href="test/%s/"' % formdata.id in resp
|
||||
assert '<a href="/test/%s/"' % formdata.id in resp
|
||||
assert 'Draft' in resp
|
||||
assert '<a href="test/%s"' % draft.id in resp
|
||||
assert '<a href="/test/%s"' % draft.id in resp
|
||||
resp = app.get('/test/%s' % formdata.id)
|
||||
resp.status_int = 200
|
||||
resp = app.get('/test/%s' % draft.id, status=302)
|
||||
|
@ -183,7 +183,7 @@ def test_home_with_user_forms(pub):
|
|||
formdef.store()
|
||||
resp = app.get('/')
|
||||
assert 'Status1' in resp
|
||||
assert '<a href="test/%s/"' % formdata.id in resp
|
||||
assert '<a href="/test/%s/"' % formdata.id in resp
|
||||
assert not 'Draft' in resp
|
||||
assert not '<a href="test/%s"' % draft.id in resp
|
||||
resp = app.get('/test/%s' % formdata.id)
|
||||
|
|
Loading…
Reference in New Issue