Add ci settings file for postgresql database

This commit is contained in:
Oliver Walters 2020-09-02 20:09:11 +10:00
parent bb9e8fa97b
commit 92ec849fc1

View File

@ -0,0 +1,17 @@
"""
Configuration file for running tests against a MySQL database.
"""
from InvenTree.settings import *
# Override the 'test' database
if 'test' in sys.argv:
eprint('InvenTree: Running tests - Using MySQL test database')
DATABASES['default'] = {
# Ensure postgresql backend is being used
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'inventree_test_db',
'USER': 'postgres',
'PASSWORD': '',
}