auto_repair_saas/test_settings.py
from .settings import *
SENDGRID_SANDBOX_MODE_IN_DEBUG = True
MIDDLEWARE.remove(
'auto_repair_saas.apps.utils.middleware.CurrentUserMiddleware'
)
if os.environ.get('GITHUB_WORKFLOW'):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'github_actions',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}