mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
[fix] Fix test due to change in html structure
This commit is contained in:
parent
1c985944b9
commit
366776ebeb
@ -46,7 +46,7 @@ class TestUserToggleActivityView(TestCase, WagtailTestUtils):
|
||||
|
||||
self.assertEqual(response.status_code, 200)
|
||||
html = response.content.decode()
|
||||
self.assertInHTML("<p>A superuser cannot change his/her role</p>", html)
|
||||
self.assertInHTML("<p>A superuser cannot change their role</p>", html)
|
||||
|
||||
needle = '<ul>'
|
||||
needle += '<li>{user_email}</li>'.format(user_email=self.current_user.email)
|
||||
|
Loading…
Reference in New Issue
Block a user