Source

django-private-media / private_media / test_settings.py

Full commit
import os


SITE_ID = 1

TEST_ROOT = os.path.join(os.path.normcase(os.path.dirname(
    os.path.abspath(__file__))), 'tests')

DATABASE_ENGINE = 'sqlite3'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': ':memory:',
    }
}

MEDIA_URL = '/media/'

MEDIA_ROOT = os.path.join(TEST_ROOT, 'assets', 'media')

ADMIN_MEDIA_PREFIX = '/static/admin/'

STATIC_URL = '/static/'

STATIC_ROOT = os.path.join(TEST_ROOT, 'assets', 'static')

ROOT_URLCONF = 'private_media.tests.urls'

TEMPLATE_DIRS = (
    os.path.join(TEST_ROOT, 'templates'),
)

INSTALLED_APPS = (
    'django.contrib.contenttypes',
    'django.contrib.auth',
    'private_media',
    'private_media.tests',
    'django_jenkins',
)

PROJECT_APPS = (
    'private_media',
)

JENKINS_TASKS = (
    'django_jenkins.tasks.with_coverage',
    'django_jenkins.tasks.django_tests',
    'django_jenkins.tasks.run_pep8',
    'django_jenkins.tasks.run_pyflakes',
)