mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Remove hardcoded url path
This commit is contained in:
parent
6152fc925d
commit
bbd688b4d2
1 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ class AccessAttemptTest(TestCase):
|
|||
|
||||
def _successful_login(self, username, password):
|
||||
c = Client()
|
||||
response = c.post('/admin/', {
|
||||
response = c.post(reverse('admin:index'), {
|
||||
'username': username,
|
||||
'password': username,
|
||||
'this_is_the_login_form': 1,
|
||||
|
|
@ -122,7 +122,7 @@ class AccessAttemptTest(TestCase):
|
|||
|
||||
def _unsuccessful_login(self, username):
|
||||
c = Client()
|
||||
response = c.post('/admin/', {
|
||||
response = c.post(reverse('admin:index'), {
|
||||
'username': username,
|
||||
'password': 'wrong',
|
||||
'this_is_the_login_form': 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue