Opened 17 years ago
Closed 16 years ago
#7534 closed (fixed)
Django test suite needs charset UTF8 in test database
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Testing framework | 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
In settings, there is the parameter TEST_DATABASE_CHARSET, which should be used to define default character set for test database. IMHO it should be highlighted in the Chapter "Contributing to Django".
Attachments (3)
Change History (7)
by , 17 years ago
Attachment: | contributions_mysql_charset.patch added |
---|
comment:1 by , 17 years ago
by , 17 years ago
Attachment: | no-test-db-setting-result.txt added |
---|
Charset is not specified in test settings
by , 17 years ago
Attachment: | utf8-test-db-setting-result.txt added |
---|
settings.TEST_DATABASE_CHARSET=UTF8
comment:2 by , 17 years ago
Charset and collation of default MySQL 5.x installation is LATIN1 and LATIN1_SWEDISH_CI. If charset UTF8 is not specified for Django tests, then custom_pk and serializers test fail.
See attached files no-test-db-settings-result.txt (under default conditions) and utf8-test-db-settings-result.txt (having specified in settings.TEST_DATABASE_CHARSET=UTF8 - all UTF8 related errors has disappeared). Tested with InnoDB engine on MySQL 5.0.37-community-nt.
comment:3 by , 16 years ago
Component: | Uncategorized → Unit test system |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I wonder which tests are failing. Can you provide some error messages?