From 14d337e44d997a12fbcabbd76bccf00576d14cbc Mon Sep 17 00:00:00 2001 From: clemence Date: Sat, 21 Mar 2026 16:12:02 +0100 Subject: [PATCH] [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. --- allianceauth/authentication/tests/test_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allianceauth/authentication/tests/test_admin.py b/allianceauth/authentication/tests/test_admin.py index 26d389b7..70416a2d 100644 --- a/allianceauth/authentication/tests/test_admin.py +++ b/allianceauth/authentication/tests/test_admin.py @@ -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
The X-Men" + expected = "Xavier's School for Gifted Youngsters
The X-Men" self.assertEqual(user_main_organization(self.user_4), expected) def test_characters_u1(self):