mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Run the test with a different configuration
This commit is contained in:
parent
c7344f6b60
commit
3a238b17b5
2 changed files with 90 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ install:
|
|||
- pip install -e .
|
||||
- pip install South
|
||||
script:
|
||||
- ./example/manage.py test categories
|
||||
- ./example/manage.py test categories --settings='settings-testing'
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
89
example/settings-testing.py
Normal file
89
example/settings-testing.py
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
# Django settings for sample project.
|
||||
import os
|
||||
import sys
|
||||
import django
|
||||
|
||||
APP = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||
PROJ_ROOT = os.path.abspath(os.path.dirname(__file__))
|
||||
sys.path.insert(0, APP)
|
||||
DEBUG = True
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
|
||||
ADMINS = (
|
||||
# ('Your Name', 'your_email@domain.com'),
|
||||
)
|
||||
|
||||
MANAGERS = ADMINS
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': 'dev.db',
|
||||
'USER': '',
|
||||
'PASSWORD': '',
|
||||
'HOST': '',
|
||||
'PORT': '',
|
||||
}
|
||||
}
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'django.contrib.flatpages',
|
||||
'categories',
|
||||
'categories.editor',
|
||||
'mptt',
|
||||
'simpletext',
|
||||
)
|
||||
|
||||
TIME_ZONE = 'America/Chicago'
|
||||
|
||||
LANGUAGE_CODE = 'en-us'
|
||||
|
||||
SITE_ID = 1
|
||||
|
||||
USE_I18N = True
|
||||
|
||||
MEDIA_ROOT = os.path.abspath(os.path.join(PROJ_ROOT, 'media', 'uploads'))
|
||||
|
||||
MEDIA_URL = '/uploads/'
|
||||
|
||||
STATIC_ROOT = os.path.abspath(os.path.join(PROJ_ROOT, 'media', 'static'))
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
STATICFILES_DIRS = ()
|
||||
|
||||
STATICFILES_FINDERS = (
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
)
|
||||
|
||||
SECRET_KEY = 'bwq#m)-zsey-fs)0#4*o=2z(v5g!ei=zytl9t-1hesh4b&-u^d'
|
||||
|
||||
TEMPLATE_LOADERS = (
|
||||
'django.template.loaders.filesystem.Loader',
|
||||
'django.template.loaders.app_directories.Loader',
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
)
|
||||
|
||||
ROOT_URLCONF = 'urls'
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates')),
|
||||
)
|
||||
|
||||
if django.VERSION[1] > 5:
|
||||
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
|
||||
Loading…
Reference in a new issue