Opened 18 years ago

Closed 17 years ago

#4709 closed (fixed)

TestCase don't respect LANGUAGE_CODE?

Reported by: michal@… Owned by: nobody
Component: Testing framework Version: dev
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: no UI/UX: no

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 by John Shaffer <jshaffer2112@…>, 17 years ago

Component: UncategorizedUnit test system
Owner: changed from Jacob to Adrian Holovaty

comment:2 by Russell Keith-Magee, 17 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Russell Keith-Magee, 17 years ago

Version: unicodeSVN

comment:4 by msgre, 17 years ago

Owner: changed from nobody to msgre
Status: newassigned

comment:5 by msgre, 17 years ago

Owner: msgre removed
Status: assignednew

comment:6 by msgre, 17 years ago

Owner: set to nobody

Sorry folks, I couldn't solve it.

comment:7 by Malcolm Tredinnick, 17 years ago

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