summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Martin <rdm@google.com>2013-05-22 17:59:46 -0400
committerRobert Martin <rdm@google.com>2013-05-22 18:08:56 -0400
commit05d3f1e85aaa0e9f5e5fc5db78ac4949893027d6 (patch)
treec4ab4173ebae5725061a7a2ffd4aff0bdd398069
parentc1321462d7381b00e79f39c6805d95dc40128f42 (diff)
downloadaskbot-05d3f1e85aaa0e9f5e5fc5db78ac4949893027d6.tar.gz
askbot-05d3f1e85aaa0e9f5e5fc5db78ac4949893027d6.tar.bz2
askbot-05d3f1e85aaa0e9f5e5fc5db78ac4949893027d6.zip
set test charset & collation to utf-8
Without these settings, MySQL chooses the wrong charset and collation, which causes some utf-8 tests to fail.
-rw-r--r--askbot/setup_templates/settings.py.mustache2
1 files changed, 2 insertions, 0 deletions
diff --git a/askbot/setup_templates/settings.py.mustache b/askbot/setup_templates/settings.py.mustache
index c14ebaee..f30297d7 100644
--- a/askbot/setup_templates/settings.py.mustache
+++ b/askbot/setup_templates/settings.py.mustache
@@ -27,6 +27,8 @@ DATABASES = {
'PASSWORD': '{{database_password}}', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
+ 'TEST_CHARSET': 'utf8', # Setting the character set and collation to utf-8
+ 'TEST_COLLATION': 'utf8_general_ci', # is necessary for MySQL tests to work properly.
}
}