summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-04-15 07:43:28 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-04-15 07:43:52 (GMT)
commit86e9f58cdb8368bc7c0cfc751c335dc0c7acf1f4 (patch)
tree52ced293e5dae796ea4e5451811ab976fdf8b600
parentc9e1f5f68839b0bc068fb7270900617285fc329a (diff)
downloadcombo-86e9f58cdb8368bc7c0cfc751c335dc0c7acf1f4.zip
combo-86e9f58cdb8368bc7c0cfc751c335dc0c7acf1f4.tar.gz
combo-86e9f58cdb8368bc7c0cfc751c335dc0c7acf1f4.tar.bz2
tests: adjust for whitespace changes after #31874
-rw-r--r--tests/test_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_manager.py b/tests/test_manager.py
index 6bc24b3..3f4185d 100644
--- a/tests/test_manager.py
+++ b/tests/test_manager.py
@@ -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'