Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #20117 -- Added missing translation override to fix flatpages t…

…est.
  • Loading branch information...
commit 6985f0c09bdf87509a1ca3c98f7ba45a7a9dbc0c 1 parent e7514e4
@matiasb matiasb authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 django/contrib/flatpages/tests/forms.py
View
9 django/contrib/flatpages/tests/forms.py
@@ -58,11 +58,12 @@ def test_flatpage_admin_form_url_uniqueness_validation(self):
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):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.