django-notifications/notifications/tests/settings.py
theodore.therone@gmail.com ce0f1fc0ec extra tests and coverage
Small tweaks to views -  to  to prevent collision with python keyword.
2015-04-09 04:36:15 +00:00

39 lines
874 B
Python

SECRET_KEY = 'secret_key'
SOUTH_TESTS_MIGRATE = True
TESTING = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'notifications',
)
ROOT_URLCONF = 'notifications.tests.urls'
# Need to skip migrations for now as migrations created with python2 break with python3
# See https://code.djangoproject.com/ticket/23455
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
MIGRATION_MODULES = DisableMigrations()