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:

Description

I just wrote some tests and found, that testcase don't respect LANGUAGE_CODE="cs" from settings.py 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: UncategorizedUnit test system
Owner: changed from Jacob to Adrian Holovaty

comment:2 Changed 9 years ago by Russell Keith-Magee

Triage Stage: UnreviewedAccepted

comment:3 Changed 9 years ago by Russell Keith-Magee

Version: unicodeSVN

comment:4 Changed 9 years ago by msgre

Owner: changed from nobody to msgre
Status: newassigned

comment:5 Changed 9 years ago by msgre

Owner: msgre deleted
Status: assignednew

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 Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(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