forked from APSL/django-cookie-law
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtests.py
35 lines (31 loc) · 1.08 KB
/
runtests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from __future__ import absolute_import
import sys
from django.conf import settings
from django.core import management
def main():
settings.configure(
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
INSTALLED_APPS = (
'django.contrib.staticfiles',
'cookielaw',
'cookielaw.test_project.test_app',
),
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.request',
'django.core.context_processors.static',
'django.core.context_processors.tz',
'django.contrib.messages.context_processors.messages'
),
ROOT_URLCONF = 'cookielaw.test_project.urls',
STATIC_URL = '/static/',
)
management.execute_from_command_line(['', 'test', 'cookielaw',])
sys.exit()