forked from un1t/django-resized
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntests.py
More file actions
executable file
·35 lines (30 loc) · 845 Bytes
/
runtests.py
File metadata and controls
executable file
·35 lines (30 loc) · 845 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
#!/usr/bin/env python
import os
import sys
from django.conf import settings
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
},
},
INSTALLED_APPS = (
'django_resized.testapp',
'django_resized',
),
MIDDLEWARE_CLASSES = [],
DJANGORESIZED_DEFAULT_SIZE = [400, 300],
MEDIA_ROOT = os.path.join(BASE_DIR, 'media'),
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner',
NOSE_ARGS = [
'--with-spec',
'--spec-color',
'--verbosity=2',
'--nocapture',
],
)
if __name__ == "__main__":
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv[:1] + ['test'] + sys.argv[1:])