From 84aa8965d7637785adee96ccc26dde30c1c82666 Mon Sep 17 00:00:00 2001 From: Daniel Stanton Date: Thu, 26 Jan 2017 18:27:41 +0000 Subject: [PATCH] Added logout all URL for tests --- rest_auth/tests/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rest_auth/tests/urls.py b/rest_auth/tests/urls.py index 6371218..e5f9d24 100644 --- a/rest_auth/tests/urls.py +++ b/rest_auth/tests/urls.py @@ -8,6 +8,7 @@ from allauth.socialaccount.providers.twitter.views import TwitterOAuthAdapter from rest_framework.decorators import api_view from rest_auth.urls import urlpatterns +from rest_auth.views import LogoutAllView from rest_auth.registration.views import SocialLoginView from rest_auth.social_serializers import TwitterLoginSerializer @@ -49,5 +50,6 @@ urlpatterns += [ url(r'^social-login/twitter/$', TwitterLogin.as_view(), name='tw_login'), url(r'^social-login/twitter-no-view/$', twitter_login_view, name='tw_login_no_view'), url(r'^social-login/twitter-no-adapter/$', TwitterLoginNoAdapter.as_view(), name='tw_login_no_adapter'), - url(r'^accounts/', include('allauth.socialaccount.urls')) + url(r'^accounts/', include('allauth.socialaccount.urls')), + url(r'^logoutall/$', LogoutAllView.as_view(), name='rest_logout_all'), ]