diff --git a/authens/tests/test_views.py b/authens/tests/test_views.py index 5275fb3..54cb47a 100644 --- a/authens/tests/test_views.py +++ b/authens/tests/test_views.py @@ -31,7 +31,7 @@ class TestLoginViews(TestCase): def test_cas_login_with_ticket(self, mock_cas_client): # Make `get_cas_client` return a dummy CAS client that skips ticket verification # and always log in a user with CAS login 'johndoe'. - mock_cas_client.return_value = FakeCASClient("johndoe", 2019) + mock_cas_client.return_value = FakeCASClient() url = reverse("authens:login.cas") client = Client() @@ -64,7 +64,7 @@ class TestLogoutView(TestCase): # Make `get_cas_client` return a dummy CAS client that skips ticket verification # and always log in a user with CAS login 'johndoe'. # This is only used for login. - mock_cas_client.return_value = FakeCASClient("johndoe", 2019) + mock_cas_client.return_value = FakeCASClient() # CAS user user = UserModel.objects.create_user(username="johndoe")