Opened 17 years ago

Last modified 17 years ago

#6958 closed

Some tests of newforms-admin depend on settings.LANGUAGE_CODE — at Version 1

Reported by: Reza Mohammadi Owned by: nobody
Component: Testing framework Version: newforms-admin
Severity: Keywords: nfa-blocker
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Gary Wilson)

File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/__init__.py", line ?, in django.contrib.auth.tests.__test__.FORM_TESTS
Failed example:
    form["username"].errors
Expected:
    [u'This value must contain only letters, numbers and underscores.']
Got:
    [u'\u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u0641\u0642\u0637 \u0628\u0627\u06cc\u062f \u062d\u0627\u0648\u06cc \u06a9\u0644\u0645\u0627\u062a\u060c \u0634\u0645\u0627\u0631\u0647 \u0647\u0627 \u0648 \u06cc\u0627 \u062e\u0637 \u0632\u06cc\u0631 \u0628\u0627\u0634\u062f.']

Is it ok to add these lines before tests dependent on LANGUAGE_CODE?

>>> import settings
>>> settings.LANGUAGE_CODE = "en-us"

Change History (1)

comment:1 by Gary Wilson, 17 years ago

Description: modified (diff)

fixed description formatting.

Note: See TracTickets for help on using tickets.
Back to Top