tests: adapt to absolute URI for user forms (#39630)
gitea-wip/wcs/pipeline/head There was a failure building this commit Details
gitea/wcs/pipeline/head Build started... Details

This commit is contained in:
Frédéric Péters 2020-02-07 11:43:45 +01:00
parent fa3a739a59
commit 6f9b2086f7
1 changed files with 3 additions and 3 deletions

View File

@ -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)