Specify charset and collation options for the test database

This commit is contained in:
Oliver 2022-04-22 11:20:49 +10:00
parent 5fde9f552c
commit dc0f18d21f

View File

@ -546,6 +546,12 @@ if "sqlite" in db_engine:
# Provide OPTIONS dict back to the database configuration dict
db_config['OPTIONS'] = db_options
# Set testing options for the database
db_config['TEST'] = {
'CHARSET': 'utf8',
'COLLATION': 'utf8_general_ci',
}
DATABASES = {
'default': db_config
}