Renaming IsAuthenticated
This commit is contained in:
@@ -8,7 +8,7 @@ from lostplaces_app.models import Place
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
class TestIsAuthenticated(TestCase):
|
||||
class TestIsAuthenticatedMixin(TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
@@ -45,7 +45,7 @@ class TestIsAuthenticated(TestCase):
|
||||
expected_url='?'.join([str(reverse_lazy('login')), 'next=/place/1/']),
|
||||
status_code=302,
|
||||
target_status_code=200,
|
||||
msg_prefix='''Accesing an IsAuthenticated view while not logged should
|
||||
msg_prefix='''Accesing an IsAuthenticatedMixin view while not logged should
|
||||
redirect to login page with redirect params
|
||||
''',
|
||||
fetch_redirect_response=True
|
||||
|
Reference in New Issue
Block a user