Flatpages test failure in a project with language different to 'en'
Having a project with contrib.flatpages in INSTALLED_APPS and a LANGUAGE_CODE setting different to 'en' (for example, LANGUAGE_CODE = 'fr-fr'), running flatpages tests I'm getting a failing test:
$ ./manage.py test flatpages
Creating test database for alias 'default'...
.F...............................................
======================================================================
FAIL: test_flatpage_admin_form_url_uniqueness_validation (django.contrib.flatpages.tests.forms.FlatpageAdminFormTests)
The flatpage admin form correctly enforces url uniqueness among flatpages of the same site
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matiasb/projects/django/dev/django/django/contrib/flatpages/tests/forms.py", line 65, in test_flatpage_admin_form_url_uniqueness_validation
{'__all__': ['Flatpage with url /myflatpage1/ already exists for site example.com']})
AssertionError: {u'__all__': [u"La page statique \xe0 l'URL /myflatpage1/ existe d\xe9j\xe0 pour le site example.com"]} != {u'__all__': [u'Flatpage with url /myflatpage1/ already exists for site example.com']}
----------------------------------------------------------------------
Ran 49 tests in 4.370s
FAILED (failures=1)
Change History
(5)
Has patch: |
set
|
Status: |
new → assigned
|
Easy pickings: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Created pull request fixing the test: https://github.com/django/django/pull/946
Tests passing with SQLite.