From c0b222b77abd850f8690de775a3a99ceb4aba1f9 Mon Sep 17 00:00:00 2001 From: hjlarry Date: Tue, 23 Dec 2025 16:25:56 +0800 Subject: [PATCH] fix unittest --- .../controllers/console/auth/test_account_activation.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/tests/unit_tests/controllers/console/auth/test_account_activation.py b/api/tests/unit_tests/controllers/console/auth/test_account_activation.py index 94d9b2cdeb..d3e864a75a 100644 --- a/api/tests/unit_tests/controllers/console/auth/test_account_activation.py +++ b/api/tests/unit_tests/controllers/console/auth/test_account_activation.py @@ -433,21 +433,17 @@ class TestActivateApi: @patch("controllers.console.auth.activate.RegisterService.get_invitation_with_case_fallback") @patch("controllers.console.auth.activate.RegisterService.revoke_token") @patch("controllers.console.auth.activate.db") - @patch("controllers.console.auth.activate.AccountService.login") def test_activation_normalizes_email_before_lookup( self, - mock_login, mock_db, mock_revoke_token, mock_get_invitation, app, mock_invitation, mock_account, - mock_token_pair, ): """Ensure uppercase emails are normalized before lookup and revocation.""" mock_get_invitation.return_value = mock_invitation - mock_login.return_value = mock_token_pair with app.test_request_context( "/activate",