From dc0f18d21fdacaf30c1693c06984b99d9128fdf4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 22 Apr 2022 11:20:49 +1000 Subject: [PATCH] Specify charset and collation options for the test database --- InvenTree/InvenTree/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 5b3d2eb8d8..c7e058b26c 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -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 }