"""
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': '',
    }

Add ci settings file for postgresql database