Skip to content

Commit c933513

Browse files
committed
Bumps version, fixes import ordering
1 parent 1eaa8ed commit c933513

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

dj_rest_auth/app_settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@
3636
PasswordChangeSerializer = import_callable(serializers.get('PASSWORD_CHANGE_SERIALIZER', DefaultPasswordChangeSerializer))
3737

3838
JWT_AUTH_COOKIE = getattr(settings, 'JWT_AUTH_COOKIE', None)
39-

dj_rest_auth/tests/test_api.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ def test_registration(self):
407407

408408
@override_settings(REST_AUTH_REGISTER_PERMISSION_CLASSES=(CustomPermissionClass,))
409409
def test_registration_with_custom_permission_class(self):
410-
411410
class CustomRegisterView(RegisterView):
412411
permission_classes = register_permission_classes()
413412
authentication_classes = ()
@@ -477,7 +476,7 @@ def test_registration_with_email_verification(self):
477476
)
478477

479478
# verify email
480-
email_confirmation = new_user.emailaddress_set.get(email=self.EMAIL)\
479+
email_confirmation = new_user.emailaddress_set.get(email=self.EMAIL) \
481480
.emailconfirmation_set.order_by('-created')[0]
482481
self.post(
483482
self.verify_email_url,
@@ -526,7 +525,6 @@ def test_login_jwt_sets_cookie(self):
526525
resp = self.post(self.login_url, data=payload, status_code=200)
527526
self.assertTrue('jwt-auth' in resp.cookies.keys())
528527

529-
530528
@override_settings(REST_USE_JWT=True)
531529
@override_settings(JWT_AUTH_COOKIE='jwt-auth')
532530
def test_logout_jwt_deletes_cookie(self):
@@ -539,7 +537,6 @@ def test_logout_jwt_deletes_cookie(self):
539537
resp = self.post(self.logout_url, status=200)
540538
self.assertEqual('', resp.cookies.get('jwt-auth').value)
541539

542-
543540
@override_settings(REST_USE_JWT=True)
544541
@override_settings(JWT_AUTH_COOKIE='jwt-auth')
545542
@override_settings(REST_FRAMEWORK=dict(
@@ -557,4 +554,4 @@ def test_cookie_authentication(self):
557554
resp = self.post(self.login_url, data=payload, status_code=200)
558555
self.assertEqual(['jwt-auth'], list(resp.cookies.keys()))
559556
resp = self.get('/protected-view/')
560-
self.assertEquals(resp.status_code, 200)
557+
self.assertEquals(resp.status_code, 200)

dj_rest_auth/tests/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
from dj_rest_auth.urls import urlpatterns
1111
from django.conf.urls import include, url
1212
from django.views.generic import TemplateView
13+
from rest_framework import permissions
1314
from rest_framework.decorators import api_view
14-
from rest_framework.views import APIView
1515
from rest_framework.response import Response
16-
from rest_framework import permissions
16+
from rest_framework.views import APIView
1717

1818
from . import django_urls
1919

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
setup(
1414
name='dj-rest-auth',
15-
version='0.2.0',
15+
version='1.0.0',
1616
author='iMerica',
1717
author_email='[email protected]',
1818
url='http://github.com/jazzband/dj-rest-auth',

0 commit comments

Comments
 (0)