Opened 9 years ago

Closed 9 years ago

#4709 closed (fixed)

TestCase don't respect LANGUAGE_CODE?

Reported by: michal@… Owned by: nobody
Component: Testing framework Version: master
Severity: Keywords: test settings LANGUAGE_CODE
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I just wrote some tests and found, that testcase don't respect LANGUAGE_CODE="cs" from file.

In my test I simulate POST to form (newform) with some empty values for required inputs, and I get error message like: "* This field is required." close to particular input.

But when I run my application, and try the same situation with browser, I get message "* Toto pole je povinné." (which is correct).

Change History (7)

comment:1 Changed 9 years ago by John Shaffer <jshaffer2112@…>

  • Component changed from Uncategorized to Unit test system
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from jacob to adrian
  • Patch needs improvement unset

comment:2 Changed 9 years ago by russellm

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 9 years ago by russellm

  • Version changed from unicode to SVN

comment:4 Changed 9 years ago by msgre

  • Owner changed from nobody to msgre
  • Status changed from new to assigned

comment:5 Changed 9 years ago by msgre

  • Owner msgre deleted
  • Status changed from assigned to new

comment:6 Changed 9 years ago by msgre

  • Owner set to nobody

Sorry folks, I couldn't solve it.

comment:7 Changed 9 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [6583]) Modified the test harness to respect the LANGUAGE_CODE setting. Also changed
Django's own test runner to always use 'en' for LANGUAGE_CODE when testing
core. Fixed #4709

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