mirror of
https://github.com/Hopiu/django.git
synced 2026-04-24 08:44:48 +00:00
Fixed #20117 -- Added missing translation override to fix flatpages test.
This commit is contained in:
parent
e7514e4978
commit
6985f0c09b
1 changed files with 5 additions and 4 deletions
|
|
@ -58,11 +58,12 @@ class FlatpageAdminFormTests(TestCase):
|
|||
|
||||
f = FlatpageForm(data=data)
|
||||
|
||||
self.assertFalse(f.is_valid())
|
||||
with translation.override('en'):
|
||||
self.assertFalse(f.is_valid())
|
||||
|
||||
self.assertEqual(
|
||||
f.errors,
|
||||
{'__all__': ['Flatpage with url /myflatpage1/ already exists for site example.com']})
|
||||
self.assertEqual(
|
||||
f.errors,
|
||||
{'__all__': ['Flatpage with url /myflatpage1/ already exists for site example.com']})
|
||||
|
||||
def test_flatpage_admin_form_edit(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue