Skip to content

Commit 83e9fee

Browse files
committed
fix: google creds missing in tests
1 parent 9d4cbc7 commit 83e9fee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/tests/test_chat.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ def mock_vertexai_generative_model(mocker):
3131

3232
@pytest.fixture
3333
def chat_manager(mocker, mock_vertexai, mock_vertexai_generative_model):
34+
# Mock Google service account credentials
35+
mock_credentials = mocker.Mock()
36+
mocker.patch("tenantfirstaid.chat.service_account.Credentials.from_service_account_file",
37+
return_value=mock_credentials)
3438
return ChatManager()
3539

3640

0 commit comments

Comments
 (0)