|
@@ -26,7 +26,7 @@ class TestAuthentication(LDAPTest, TracimTestController):
|
26
|
26
|
home = self.app.get('/home/',)
|
27
|
27
|
|
28
|
28
|
# HTML button is not here
|
29
|
|
- eq_(None, BeautifulSoup(home.body).find(attrs={'class': 'change-password-btn'}))
|
|
29
|
+ eq_(None, BeautifulSoup(home.body, 'html.parser').find(attrs={'class': 'change-password-btn'}))
|
30
|
30
|
|
31
|
31
|
# If we force passwd update, we got 403
|
32
|
32
|
try_post_passwd = self.app.post(
|
|
@@ -51,12 +51,12 @@ class TestAuthentication(LDAPTest, TracimTestController):
|
51
|
51
|
edit = self.app.get('/user/5/edit')
|
52
|
52
|
|
53
|
53
|
# email input field is disabled
|
54
|
|
- email_input = BeautifulSoup(edit.body).find(attrs={'id': 'email'})
|
|
54
|
+ email_input = BeautifulSoup(edit.body, 'html.parser').find(attrs={'id': 'email'})
|
55
|
55
|
ok_('readonly' in email_input.attrs)
|
56
|
56
|
eq_(email_input.attrs['readonly'], "readonly")
|
57
|
57
|
|
58
|
58
|
# Name is not (see attributes configuration of LDAP fixtures)
|
59
|
|
- name_input = BeautifulSoup(edit.body).find(attrs={'id': 'name'})
|
|
59
|
+ name_input = BeautifulSoup(edit.body, 'html.parser').find(attrs={'id': 'name'})
|
60
|
60
|
ok_('readonly' not in name_input.attrs)
|
61
|
61
|
|
62
|
62
|
# If we force edit of user, "email" field will be not updated
|