From 05d3f1e85aaa0e9f5e5fc5db78ac4949893027d6 Mon Sep 17 00:00:00 2001 From: Robert Martin Date: Wed, 22 May 2013 17:59:46 -0400 Subject: 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. --- askbot/setup_templates/settings.py.mustache | 2 ++ 1 file changed, 2 insertions(+) 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. } } -- cgit v1.2.3-1-g7c22