[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:
clemence committed 2026-03-21 16:12:02 +01:00
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&#x27;s School for Gifted Youngsters<br>The X-Men"
self.assertEqual(user_main_organization(self.user_4), expected)
def test_characters_u1(self):