Skip to content

Commit

Permalink
Fix flake8 complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamu committed Sep 9, 2016
1 parent 7e53399 commit a7a58eb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions account/tests/test_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_login_expired(self):
self.history.save()

# get login
u = self.client.login(username=self.email, password=self.password)
self.client.login(username=self.email, password=self.password)

response = self.client.get(reverse("account_login"))
self.assertRedirects(response, reverse("account_password"))
Expand All @@ -75,7 +75,6 @@ def test_login_expired(self):
)
self.assertEquals(response.status_code, 200)


def test_login_not_expired(self):
"""
Ensure user logs in successfully without redirect.
Expand Down
5 changes: 1 addition & 4 deletions account/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
from django.contrib.auth import get_user_model

from account.conf import settings
from .models import (
PasswordHistory,
PasswordExpiry,
)
from .models import PasswordHistory


def get_user_lookup_kwargs(kwargs):
Expand Down
1 change: 0 additions & 1 deletion makemigrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ def run(*args):

if __name__ == "__main__":
run(*sys.argv[1:])

0 comments on commit a7a58eb

Please sign in to comment.