From bac29f7fdd239d2083c2fcf206183eb09225ceca Mon Sep 17 00:00:00 2001 From: Byron Wang Date: Fri, 14 Aug 2026 17:18:48 +0800 Subject: [PATCH] test(api): align webapp token assertions --- .../services/test_webapp_auth_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tests/test_containers_integration_tests/services/test_webapp_auth_service.py b/api/tests/test_containers_integration_tests/services/test_webapp_auth_service.py index 52d1fde7927..d47eaa0f8c5 100644 --- a/api/tests/test_containers_integration_tests/services/test_webapp_auth_service.py +++ b/api/tests/test_containers_integration_tests/services/test_webapp_auth_service.py @@ -497,7 +497,7 @@ class TestWebAppAuthService: # Verify token generation parameters token_call_args = mock_external_service_dependencies["token_manager"].generate_token.call_args - assert token_call_args[1]["account"] == account + assert token_call_args[1]["account_id"] == account.id assert token_call_args[1]["email"] == account.email assert token_call_args[1]["token_type"] == "email_code_login" assert "code" in token_call_args[1]["additional_data"] @@ -537,7 +537,7 @@ class TestWebAppAuthService: # Verify token generation parameters token_call_args = mock_external_service_dependencies["token_manager"].generate_token.call_args - assert token_call_args[1]["account"] is None + assert token_call_args[1]["account_id"] is None assert token_call_args[1]["email"] == test_email assert token_call_args[1]["token_type"] == "email_code_login" assert "code" in token_call_args[1]["additional_data"]