tests: check user formdef xml export using bytes (#36515)

This commit is contained in:
Frédéric Péters 2019-11-16 14:24:22 +01:00
parent fdb0ad1aa1
commit 207d3ae91e
1 changed files with 2 additions and 2 deletions

View File

@ -4402,7 +4402,7 @@ def test_settings_user(pub):
resp = resp.forms[1].submit()
assert resp.location == 'http://example.net/backoffice/settings/users/fields/'
resp = resp.follow()
assert 'foobar' in pub.cfg['users']['formdef']
assert b'foobar' in pub.cfg['users']['formdef']
assert 'foobar' in resp.text
# set field as email
@ -4425,7 +4425,7 @@ def test_settings_user(pub):
resp = resp.forms[1].submit()
assert resp.location == 'http://example.net/backoffice/settings/users/fields/'
resp = resp.follow()
assert 'barfoo' in pub.cfg['users']['formdef']
assert b'barfoo' in pub.cfg['users']['formdef']
assert 'barfoo' in resp.text
# check fields are present in edit form