Skip to content

Commit

Permalink
fix a test for translation message
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Sep 12, 2024
1 parent dab0ad8 commit 265eb8c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/design/plone/policy/tests/test_limit_submit_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,5 @@ def test_unique_field(self):
transaction.commit()
self.assertEqual(response.status_code, 500)
# test message is not fair because it's a translation, in another package
self.assertTrue(
"Value not unique" in response.json()["message"]
or "non sono univoci" in response.json()["message"]
)
message = response.json()["message"]
self.assertTrue("Value not unique" in message or "non sono univoci" in message)

0 comments on commit 265eb8c

Please sign in to comment.