From 4485a75646361351e6779140d2ddb952661ecf82 Mon Sep 17 00:00:00 2001 From: Nick Moreton Date: Tue, 24 Dec 2024 11:13:00 +0000 Subject: [PATCH] Make the regex less specific --- wagtailmenus/tests/test_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtailmenus/tests/test_backend.py b/wagtailmenus/tests/test_backend.py index 5a9210de..a5931417 100644 --- a/wagtailmenus/tests/test_backend.py +++ b/wagtailmenus/tests/test_backend.py @@ -86,7 +86,7 @@ def test_main_menu_save_success(self): form = edit_view.forms[next(reversed(OrderedDict(edit_view.forms)))] response = form.submit().follow() - assert "Main menu 'Main menu for wagtailmenus (co.uk)' updated." in response + assert re.search(r"Main menu .*? updated\.", response.content.decode()) class LinkPageCMSTest(TestCase):