more cleanup

This commit is contained in:
Ken Cochrane 2015-01-26 10:56:25 -05:00
parent 333fb2d8ec
commit a6eb683ea1
2 changed files with 0 additions and 4 deletions

View file

@ -48,7 +48,4 @@ USERNAME_FORM_FIELD = get_setting('DEFENDER_USERNAME_FORM_FIELD', 'username')
LOCKOUT_URL = get_setting('DEFENDER_LOCKOUT_URL')
PROTECTED_LOGINS = get_setting('DEFENDER_PROTECTED_LOGINS',
('/accounts/login/',))
USE_CELERY = get_setting('DEFENDER_USE_CELERY', False)

View file

@ -501,7 +501,6 @@ class AccessAttemptTest(DefenderTestCase):
from .admin import AccessAttemptAdmin
AccessAttemptAdmin
@patch('defender.config.PROTECTED_LOGINS', (ADMIN_LOGIN_URL, ))
def test_decorator_middleware(self):
# because watch_login is called twice in this test (once by the
# middleware and once by the decorator) we have half as many attempts