mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-29 04:23:42 +03:00
pep8
This commit is contained in:
parent
118b173282
commit
c4e7bdc77f
|
@ -6,7 +6,6 @@ from rest_framework.response import Response
|
||||||
from rest_framework.permissions import AllowAny
|
from rest_framework.permissions import AllowAny
|
||||||
from rest_framework.generics import CreateAPIView
|
from rest_framework.generics import CreateAPIView
|
||||||
from rest_framework import status
|
from rest_framework import status
|
||||||
from rest_framework.exceptions import MethodNotAllowed
|
|
||||||
|
|
||||||
from allauth.account.views import ConfirmEmailView
|
from allauth.account.views import ConfirmEmailView
|
||||||
from allauth.account.utils import complete_signup
|
from allauth.account.utils import complete_signup
|
||||||
|
|
|
@ -1,16 +1,9 @@
|
||||||
# Moved in Django 1.8 from django to tests/auth_tests/urls.py
|
# Moved in Django 1.8 from django to tests/auth_tests/urls.py
|
||||||
|
|
||||||
from django.conf.urls import include, url
|
from django.conf.urls import url
|
||||||
from django.contrib import admin
|
|
||||||
from django.contrib.auth import views
|
from django.contrib.auth import views
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
from django.contrib.auth.forms import AuthenticationForm
|
|
||||||
from django.contrib.auth.urls import urlpatterns
|
from django.contrib.auth.urls import urlpatterns
|
||||||
from django.contrib.messages.api import info
|
|
||||||
from django.http import HttpRequest, HttpResponse
|
|
||||||
from django.shortcuts import render
|
|
||||||
from django.template import RequestContext, Template
|
|
||||||
from django.views.decorators.cache import never_cache
|
|
||||||
|
|
||||||
|
|
||||||
# special urls for auth test cases
|
# special urls for auth test cases
|
||||||
|
|
|
@ -132,7 +132,7 @@ class APITestCase1(TestCase, BaseAPITestCase):
|
||||||
self.post(self.password_change_url, status_code=403)
|
self.post(self.password_change_url, status_code=403)
|
||||||
|
|
||||||
# create user
|
# create user
|
||||||
user = get_user_model().objects.create_user(self.EMAIL, email=self.EMAIL, password=self.PASS)
|
get_user_model().objects.create_user(self.EMAIL, email=self.EMAIL, password=self.PASS)
|
||||||
|
|
||||||
self.post(self.login_url, data=payload, status_code=200)
|
self.post(self.login_url, data=payload, status_code=200)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user