-
-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathrun_tests.py
More file actions
executable file
·38 lines (31 loc) · 758 Bytes
/
run_tests.py
File metadata and controls
executable file
·38 lines (31 loc) · 758 Bytes
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
36
37
38
#!/usr/bin/env python
"""
Test runner script.
Please use `tox` to run it in multiple environments.
"""
import django
from django.conf import settings
from django.core.management import call_command
gettext = lambda s: s
conf = dict(
LANGUAGES = (
('ru', gettext('Russian')),
('en', gettext('English')),
),
USE_TZ = False,
INSTALLED_APPS = [
'modeltranslation',
'autoslug'
],
DATABASES = dict(
default = dict(
ENGINE='django.db.backends.sqlite3',
NAME=':memory:',
),
),
AUTOSLUG_SLUGIFY_FUNCTION = 'django.template.defaultfilters.slugify',
)
settings.configure(**conf)
django.setup()
if __name__ == "__main__":
call_command('test', 'autoslug')