#20117: Flatpages test failure in a project with language different to 'en'
-----------------------------------+---------------------
     Reporter:  matiasb            |      Owner:  matiasb
         Type:  Bug                |     Status:  new
    Component:  contrib.flatpages  |    Version:  master
     Severity:  Normal             |   Keywords:
 Triage Stage:  Unreviewed         |  Has patch:  0
Easy pickings:  0                  |      UI/UX:  0
-----------------------------------+---------------------
 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)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20117>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to