File tree Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
- from .test_generator import *
2
- from .test_validators import *
3
- from .test_models import *
4
- from .test_mixins import *
5
- from .test_authorization_code import *
6
- from .test_implicit import *
7
- from .test_password import *
8
- from .test_client_credential import *
9
- from .test_scopes import *
10
- from .test_rest_framework import *
11
- from .test_application_views import *
12
- from .test_decorators import *
13
- from .test_oauth2_backends import *
14
- from .test_auth_backends import *
15
- from .test_oauth2_validators import *
Original file line number Diff line number Diff line change 120
120
OAUTH2_PROVIDER = {
121
121
'_SCOPES' : ['example' ]
122
122
}
123
+
124
+ import django
125
+
126
+ if django .VERSION [:2 ] < (1 , 6 ):
127
+ TEST_RUNNER = 'discover_runner.DiscoverRunner'
128
+ INSTALLED_APPS += ('discover_runner' ,)
129
+ else :
130
+ TEST_RUNNER = 'django.test.runner.DiscoverRunner'
Original file line number Diff line number Diff line change @@ -16,12 +16,14 @@ deps =
16
16
basepython = python2.6
17
17
deps =
18
18
Django<1.5
19
+ django-discover-runner
19
20
{[testenv]deps}
20
21
21
22
[testenv:py26-django15]
22
23
basepython = python2.6
23
24
deps =
24
25
Django<1.6
26
+ django-discover-runner
25
27
{[testenv]deps}
26
28
27
29
[testenv:py26-django16]
@@ -34,12 +36,14 @@ deps =
34
36
basepython = python2.7
35
37
deps =
36
38
Django<1.5
39
+ django-discover-runner
37
40
{[testenv]deps}
38
41
39
42
[testenv:py27-django15]
40
43
basepython = python2.7
41
44
deps =
42
45
Django<1.6
46
+ django-discover-runner
43
47
{[testenv]deps}
44
48
45
49
[testenv:py27-django16]
58
62
basepython = python3.3
59
63
deps =
60
64
Django<1.6
65
+ django-discover-runner
61
66
{[testenv]deps}
62
67
63
68
[testenv:py33-django16]
76
81
basepython = python3.4
77
82
deps =
78
83
Django<1.6
84
+ django-discover-runner
79
85
{[testenv]deps}
80
86
81
87
[testenv:py34-django16]
You can’t perform that action at this time.
0 commit comments