mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
python3 fix
This commit is contained in:
parent
1b63b657a1
commit
59fed5fc8a
1 changed files with 1 additions and 1 deletions
|
|
@ -447,7 +447,7 @@ class AccessAttemptTest(TestCase):
|
|||
# before getting locked out.
|
||||
# FIXME: I tried making sure every request in only processed once but
|
||||
# there seems to be an issue with django reusing request objects.
|
||||
for i in range(0, config.FAILURE_LIMIT / 2):
|
||||
for i in range(0, int(config.FAILURE_LIMIT / 2)):
|
||||
response = self._login()
|
||||
# Check if we are in the same login page
|
||||
self.assertContains(response, LOGIN_FORM_KEY)
|
||||
|
|
|
|||
Loading…
Reference in a new issue