Skip to content
Snippets Groups Projects
test.py 1.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • from .common import *  # noqa
    SECRET_KEY = env("DJANGO_SECRET_KEY", default='test')
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': ':memory:',
        }
    }
    
    # Mail settings
    # ------------------------------------------------------------------------------
    EMAIL_HOST = 'localhost'
    EMAIL_PORT = 1025
    EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
                        default='django.core.mail.backends.console.EmailBackend')
    
    # CACHING
    # ------------------------------------------------------------------------------
    CACHES = {
        'default': {
            'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
            'LOCATION': ''
        }
    }
    
    Eliot Berriot's avatar
    Eliot Berriot committed
    
    
    # TESTING
    # ------------------------------------------------------------------------------
    TEST_RUNNER = 'django.test.runner.DiscoverRunner'
    
    ########## CELERY
    # In development, all tasks will be executed locally by blocking until the task returns
    
    ########## END CELERY
    
    # Your local stuff: Below this line define 3rd party library settings
    
    API_AUTHENTICATION_REQUIRED = False