forked from zlorf/django-synchro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtests.py
executable file
·32 lines (29 loc) · 893 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
29
30
31
32
#!/usr/bin/env python
from django.conf import settings
from django.core.management import call_command
if not settings.configured:
settings.configure(
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
},
'remote_db': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
},
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'django.contrib.sessions',
'dbsettings',
'synchro',
),
SITE_ID = 1,
SYNCHRO_REMOTE = 'remote_db',
ROOT_URLCONF = 'can be anything - tests override this',
)
call_command('test', 'synchro')