tests: adjust for whitespace changes after #31874

This commit is contained in:
Frédéric Péters 2019-04-15 09:43:28 +02:00
parent c9e1f5f688
commit 86e9f58cdb
1 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ def test_add_edit_cell(app, admin_user):
resp.forms[0]['c%s-text' % cells[0].get_reference()].value = 'World Hello'
resp = resp.forms[0].submit(xhr=True)
assert resp.status_int == 200
assert resp.text.startswith('<p><label')
assert resp.text.strip().startswith('<p><label')
resp = app.get('/manage/pages/%s/' % page.id)
assert resp.forms[0]['c%s-text' % cells[0].get_reference()].value == 'World Hello'
@ -655,7 +655,7 @@ def test_edit_config_json_cell(app, admin_user):
resp.forms[0]['c%s-test4' % cells[0].get_reference()].value = 'Text Area'
resp = resp.form.submit(xhr=True)
assert resp.status_int == 200
assert resp.text.startswith('<p><label')
assert resp.text.strip().startswith('<p><label')
resp = app.get('/manage/pages/%s/' % page.id)
assert resp.form['c%s-test' % cells[0].get_reference()].value == 'World Hello'