mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Fixed admin login url
This commit is contained in:
parent
10356ffe41
commit
9c468ecb4e
1 changed files with 3 additions and 3 deletions
|
|
@ -121,7 +121,7 @@ class AccessAttemptTest(TestCase):
|
|||
|
||||
def _successful_login(self, username, password):
|
||||
c = Client()
|
||||
response = c.post(reverse('admin:index'), {
|
||||
response = c.post(ADMIN_LOGIN_URL, {
|
||||
'username': username,
|
||||
'password': username,
|
||||
'this_is_the_login_form': 1,
|
||||
|
|
@ -131,7 +131,7 @@ class AccessAttemptTest(TestCase):
|
|||
|
||||
def _unsuccessful_login(self, username):
|
||||
c = Client()
|
||||
response = c.post(reverse('admin:index'), {
|
||||
response = c.post(ADMIN_LOGIN_URL, {
|
||||
'username': username,
|
||||
'password': 'wrong',
|
||||
'this_is_the_login_form': 1,
|
||||
|
|
@ -195,7 +195,7 @@ class AccessAttemptTest(TestCase):
|
|||
"""
|
||||
long_user_agent = 'ie6' * 1024
|
||||
valid_username = self._random_username(existing_username=True)
|
||||
response = self.client.post(reverse('admin:index'), {
|
||||
response = self.client.post(ADMIN_LOGIN_URL, {
|
||||
'username': valid_username,
|
||||
'password': valid_username,
|
||||
'this_is_the_login_form': 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue