Skip to content

Commit c4e7bdc

Browse files
committed
pep8
1 parent 118b173 commit c4e7bdc

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

rest_auth/registration/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from rest_framework.permissions import AllowAny
77
from rest_framework.generics import CreateAPIView
88
from rest_framework import status
9-
from rest_framework.exceptions import MethodNotAllowed
109

1110
from allauth.account.views import ConfirmEmailView
1211
from allauth.account.utils import complete_signup

rest_auth/tests/django_urls.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
# Moved in Django 1.8 from django to tests/auth_tests/urls.py
22

3-
from django.conf.urls import include, url
4-
from django.contrib import admin
3+
from django.conf.urls import url
54
from django.contrib.auth import views
65
from django.contrib.auth.decorators import login_required
7-
from django.contrib.auth.forms import AuthenticationForm
86
from django.contrib.auth.urls import urlpatterns
9-
from django.contrib.messages.api import info
10-
from django.http import HttpRequest, HttpResponse
11-
from django.shortcuts import render
12-
from django.template import RequestContext, Template
13-
from django.views.decorators.cache import never_cache
147

158

169
# special urls for auth test cases

rest_auth/tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_allauth_login_with_email(self):
132132
self.post(self.password_change_url, status_code=403)
133133

134134
# create user
135-
user = get_user_model().objects.create_user(self.EMAIL, email=self.EMAIL, password=self.PASS)
135+
get_user_model().objects.create_user(self.EMAIL, email=self.EMAIL, password=self.PASS)
136136

137137
self.post(self.login_url, data=payload, status_code=200)
138138

rest_auth/tests/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def send_request(self, request_method, *args, **kwargs):
4949
self.response.json = {}
5050
if is_json and self.response.content:
5151
self.response.json = json.loads(force_text(self.response.content))
52-
52+
5353
if status_code:
5454
self.assertEqual(self.response.status_code, status_code)
5555

0 commit comments

Comments
 (0)