forked from bkawula/django-swiftbrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtests.py
28 lines (25 loc) · 832 Bytes
/
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
import os, sys
from django.conf import settings
DIRNAME = os.path.dirname(__file__)
settings.configure(DEBUG=True,
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
ROOT_URLCONF='swiftbrowser.urls',
SWIFT_AUTH_URL = 'http://127.0.0.1:8080/auth/v1.0',
SWIFT_AUTH_VERSION = 1,
STORAGE_URL = 'http://127.0.0.1:8080/v1/',
STATIC_URL = '/static/',
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies',
INSTALLED_APPS=(
'django.contrib.sessions',
'django.contrib.staticfiles',
'swiftbrowser',
'swiftbrowser.tests',))
from django.test.simple import DjangoTestSuiteRunner
test_runner = DjangoTestSuiteRunner(verbosity=1)
failures = test_runner.run_tests(['swiftbrowser', ])
if failures:
sys.exit(failures)