Skip to content

Commit

Permalink
Make the regex less specific
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmoreton committed Dec 24, 2024
1 parent 346cedc commit 4485a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtailmenus/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.


class LinkPageCMSTest(TestCase):
Expand Down

0 comments on commit 4485a75

Please sign in to comment.