We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f3db62 commit ec398fdCopy full SHA for ec398fd
backend/tests/test_chat.py
@@ -92,6 +92,13 @@ def test_chat_view_dispatch_request_streams_response(
92
):
93
"""Test that sends a message to the API, mocks vertexai response, and validates output."""
94
95
+ # Mock Google service account credentials
96
+ mock_credentials = mocker.Mock()
97
+ mocker.patch(
98
+ "tenantfirstaid.chat.service_account.Credentials.from_service_account_file",
99
+ return_value=mock_credentials,
100
+ )
101
+
102
# Mock the entire RAG module components to avoid actual RAG retrieval
103
mock_rag_resource = mocker.Mock()
104
mock_rag_store = mocker.Mock()
0 commit comments