0
0
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:
Shohan 2021-08-05 11:06:58 +05:30 committed by Matt Westcott
parent 1c985944b9
commit 366776ebeb

View File

@ -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)