Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Mar 28, 2024
1 parent fdbfc54 commit 75ad431
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/redturtle/volto/locales/redturtle.volto.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-03-28 10:20+0000\n"
"POT-Creation-Date: 2024-03-28 12:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
6 changes: 3 additions & 3 deletions src/redturtle/volto/tests/test_namechooser_customization.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_name_chooser_raise_badrequest_on_site_root(self):
chooser.chooseName("foo", fake_obj)

self.assertEqual(
'The id "foo" is invalid because there is already an alias for that path. Search "/foo" in aliases management to manage it.',
'The id "foo" is invalid because there is already an alias for that path. Change its id or ask site administrators to remove "/foo" in aliases management.',
str(cm.exception),
)

Expand Down Expand Up @@ -180,7 +180,7 @@ def test_if_enabled_name_chooser_raise_badrequest_on_folderish_container(self):
chooser.chooseName("aaa", fake_obj)

self.assertEqual(
'The id "aaa" is invalid because there is already an alias for that path. Search "/container/aaa" in aliases management to manage it.',
'The id "aaa" is invalid because there is already an alias for that path. Change its id or ask site administrators to remove "/container/aaa" in aliases management.',
str(cm.exception),
)

Expand All @@ -196,7 +196,7 @@ def test_api_rename_raise_exception_if_name_is_alias(self):
api.content.rename(obj=item, new_id="foo", safe_id=True)

self.assertEqual(
'The id "foo" is invalid because there is already an alias for that path. Search "/foo" in aliases management to manage it.',
'The id "foo" is invalid because there is already an alias for that path. Change its id or ask site administrators to remove "/foo" in aliases management.',
str(cm.exception),
)

Expand Down

0 comments on commit 75ad431

Please sign in to comment.