tests: check user formdef xml export using bytes (#36515)
This commit is contained in:
parent
fdb0ad1aa1
commit
207d3ae91e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue