tests: adapt to absolute URI for user forms (#39630)
This commit is contained in:
parent
48f78b1360
commit
30159c1be7
|
@ -97,8 +97,8 @@ def test_myspace_with_user_forms():
|
|||
app = login(get_app(pub), username='user', password='user')
|
||||
resp = app.get('/myspace/')
|
||||
assert formdata.id != draft.id
|
||||
assert '<a href="test/%s/"' % formdata.id in resp
|
||||
assert '<a href="test/%s"' % draft.id in resp
|
||||
assert '<a href="/test/%s/"' % formdata.id in resp
|
||||
assert '<a href="/test/%s"' % draft.id in resp
|
||||
resp = app.get('/test/%s/' % formdata.id, status=302)
|
||||
assert resp.location == 'http://example.net/cat/test/%s/' % formdata.id
|
||||
resp = app.get('/test/%s/' % draft.id, status=302)
|
||||
|
@ -111,8 +111,8 @@ def test_myspace_with_user_forms():
|
|||
formdef.store()
|
||||
resp = app.get('/myspace/')
|
||||
assert formdata.id != draft.id
|
||||
assert '<a href="test/%s/"' % formdata.id in resp
|
||||
assert not '<a href="test/%s"' % draft.id in resp
|
||||
assert '<a href="/test/%s/"' % formdata.id in resp
|
||||
assert not '<a href="/test/%s"' % draft.id in resp
|
||||
resp = app.get('/cat/test/%s' % formdata.id)
|
||||
resp.status_int = 200
|
||||
resp = app.get('/cat/test/%s/' % draft.id, status=302)
|
||||
|
|
Reference in New Issue