Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #946 from matiasb/minor-flatpage-translation-fix

Fixed #20117 -- Added missing translation override to fix flatpages test.
  • Loading branch information...
commit 151938ddb5f9537c80c1a6426f2c6ce14adc92d9 2 parents 9c4882b + 6985f0c
Simon Charette charettes authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 django/contrib/flatpages/tests/forms.py
9 django/contrib/flatpages/tests/forms.py
View
@@ -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.