django-constance/tests/test_settings.py

25 lines
607 B
Python
Raw Normal View History

2010-09-03 12:38:43 +00:00
from datetime import datetime
from decimal import Decimal
2010-08-25 12:55:01 +00:00
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
INSTALLED_APPS = (
'tests',
'constance',
)
2010-08-25 13:08:07 +00:00
CONSTANCE_CONNECTION_CLASS = 'tests.redis_mockup.Connection'
CONSTANCE_CONFIG = {
'INT_VALUE': (1, 'some int'),
'BOOL_VALUE': (True, 'true or false'),
'STRING_VALUE': ('Hello world', 'greetings'),
2010-09-03 12:38:43 +00:00
'DECIMAL_VALUE': (Decimal('0.1'), 'the first release version'),
'DATETIME_VALUE': (datetime(2010, 8, 23, 11, 29, 24), 'time of the first commit'),
'FLOAT_VALUE': (3.1415926536, 'PI'),
2010-08-25 13:08:07 +00:00
}