Skip to content

Commit e38ffc6

Browse files
authored
fix: don't override MySQL test DB collation if set (stephenmcd#2017)
1 parent 001a16b commit e38ffc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mezzanine/utils/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def mezzanine_settings():
247247
db["NAME"] = db_path
248248
elif shortname == "mysql":
249249
# Required MySQL collation for tests.
250-
db.setdefault("TEST", {})["COLLATION"] = "utf8_general_ci"
250+
db.setdefault("TEST", {}).setdefault("COLLATION", "utf8_general_ci")
251251

252252

253253
def real_project_name(project_name):

0 commit comments

Comments
 (0)