django-configurations/configurations/tests/settings/main.py
2013-01-30 21:48:15 +01:00

46 lines
969 B
Python

import os
import uuid
from configurations import Settings
class Test(Settings):
SITE_ID = 1
SECRET_KEY = str(uuid.uuid4())
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(os.path.dirname(__file__), 'test.db'),
}
}
INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.contenttypes',
'django.contrib.sites',
'django.contrib.auth',
'django.contrib.admin',
'configurations.tests',
]
ROOT_URLCONF = 'configurations.tests.urls'
TEST_RUNNER = 'discover_runner.DiscoverRunner'
TEST_SETTING = True
_SOMETHING = 'YEAH'
DEBUG = True
@property
def LALA(self):
return 1
def LALA2(self):
return 1
def TEMPLATE_CONTEXT_PROCESSORS(self):
return Settings.TEMPLATE_CONTEXT_PROCESSORS + (
'configurations.tests.settings.base.test_callback',)