#8752 closed (fixed)
auth password tests fail on non-english sites
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The password tests in the contrib.auth app rely on a specific string to be in the output, but if the LANGUAGE_CODE setting is not english, those strings will appear translated in the output, causing the tests to fail.
Attachments (1)
Change History (11)
by , 16 years ago
Attachment: | auth_tests.diff added |
---|
comment:1 by , 16 years ago
Has patch: | set |
---|
comment:3 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:4 by , 16 years ago
So when will this change be committed? It's quite annoying to see all these bogus fails in the unit test output all the time.
comment:5 by , 16 years ago
milestone: | → 1.1 |
---|
comment:6 by , 16 years ago
I can't reproduce this failure; I have:
LANGUAGES = (('fr', 'French'),) LANGUAGE_CODE = 'fr'
in my settings file, and I don't get any failures.
comment:7 by , 16 years ago
Jacob, you also need to have the LocaleMiddleware involved for the automatic translations to have an effect on the tests, so it's more likely to be noticed when testing "auth" as part of an installed set of applications than when testing core.
comment:8 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The attached patch temporarily overrides LANGUAGES and LANGUAGE_CODE in the auth tests so that english is used as expected by the output.