File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 6464 "django.contrib.auth.middleware.AuthenticationMiddleware" ,
6565 "django.contrib.messages.middleware.MessageMiddleware" ,
6666)
67- # Django < 1.10 compatibility
68- MIDDLEWARE_CLASSES = MIDDLEWARE
6967
7068ROOT_URLCONF = "tests.urls"
7169
Original file line number Diff line number Diff line change 1+ from django .conf .global_settings import MIDDLEWARE
12from django .contrib .auth import get_user_model
23from django .contrib .auth .models import AnonymousUser
34from django .http import HttpResponse
1112 get_access_token_model ,
1213 get_application_model ,
1314)
14- try :
15- # Django<1.10 compatibility
16- from django .conf .global_settings import MIDDLEWARE_CLASSES as MIDDLEWARE
17- except ImportError :
18- from django .conf .global_settings import MIDDLEWARE
1915
2016
2117UserModel = get_user_model ()
@@ -84,9 +80,7 @@ def test_get_user(self):
8480 "oauth2_provider.backends.OAuth2Backend" ,
8581 "django.contrib.auth.backends.ModelBackend" ,
8682 ),
87- MIDDLEWARE = tuple (MIDDLEWARE ) + ("oauth2_provider.middleware.OAuth2TokenMiddleware" ,),
88- # Django<1.10 compat:
89- MIDDLEWARE_CLASSES = tuple (MIDDLEWARE ) + ("oauth2_provider.middleware.OAuth2TokenMiddleware" ,)
83+ MIDDLEWARE = tuple (MIDDLEWARE ) + ("oauth2_provider.middleware.OAuth2TokenMiddleware" , ),
9084)
9185class TestOAuth2Middleware (BaseTest ):
9286
You can’t perform that action at this time.
0 commit comments