Django

Code

Ticket #4709 (closed: fixed)

Opened 1 year ago

Last modified 10 months ago

TestCase don't respect LANGUAGE_CODE?

Reported by: michal@plovarna.cz Assigned to: nobody
Milestone: Component: Unit test system
Version: SVN Keywords: test settings LANGUAGE_CODE
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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).

Attachments

Change History

07/23/07 16:14:45 changed by John Shaffer <jshaffer2112@gmail.com>

  • owner changed from jacob to adrian.
  • needs_better_patch changed.
  • component changed from Uncategorized to Unit test system.
  • needs_tests changed.
  • needs_docs changed.

09/13/07 06:38:28 changed by russellm

  • stage changed from Unreviewed to Accepted.

09/13/07 06:38:44 changed by russellm

  • version changed from unicode to SVN.

09/14/07 07:53:54 changed by msgre

  • owner changed from nobody to msgre.
  • status changed from new to assigned.

09/14/07 11:46:41 changed by msgre

  • owner deleted.
  • status changed from assigned to new.

09/14/07 11:48:05 changed by msgre

  • owner set to nobody.

Sorry folks, I couldn't solve it.

10/21/07 12:26:33 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(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


Add/Change #4709 (TestCase don't respect LANGUAGE_CODE?)




Change Properties
Action