mirror of
https://github.com/django/django.git
synced 2025-06-03 02:29:13 +00:00
Merge pull request #946 from matiasb/minor-flatpage-translation-fix
Fixed #20117 -- Added missing translation override to fix flatpages test.
This commit is contained in:
commit
151938ddb5
@ -58,6 +58,7 @@ class FlatpageAdminFormTests(TestCase):
|
|||||||
|
|
||||||
f = FlatpageForm(data=data)
|
f = FlatpageForm(data=data)
|
||||||
|
|
||||||
|
with translation.override('en'):
|
||||||
self.assertFalse(f.is_valid())
|
self.assertFalse(f.is_valid())
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user