mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-11-04 21:14:01 +00:00
[FIX] Update test to match escaped output from format_html
The XSS fix in user_main_organization now properly escapes special characters via format_html() placeholders, so the test expectation needs to reflect the HTML-escaped apostrophe.
This commit is contained in:
1 parent
a20a8dc2bb
commit
14d337e44d
1 file changed
+1
-1
@@ -347,7 +347,7 @@ class TestUserAdmin(TestCaseWithTestData):
|
||||
self.assertEqual(user_main_organization(self.user_3), expected)
|
||||
|
||||
def test_user_main_organization_u4(self):
|
||||
expected = "Xavier's School for Gifted Youngsters<br>The X-Men"
|
||||
expected = "Xavier's School for Gifted Youngsters<br>The X-Men"
|
||||
self.assertEqual(user_main_organization(self.user_4), expected)
|
||||
|
||||
def test_characters_u1(self):
|
||||
|
||||
Reference in new issue
Block a user