···802802 validation = validate_vertex_credentials(creds_path_str)
803803804804 if not validation.get("valid"):
805805- # Still save the file, but report the error
806806- # Don't block save - credentials may need reconfiguration
805805+ # Still save the file, but report the error.
806806+ # Don't block save - credentials may be valid with the right service account.
807807 pass
808808809809 # Store validation result
+1-5
tests/test_validate_key.py
···161161 assert mock_cls.call_args.kwargs["vertexai"] is True
162162 assert mock_cls.call_args.kwargs["credentials"] is mock_creds
163163 assert "api_key" not in mock_cls.call_args.kwargs
164164- assert "project" not in mock_cls.call_args.kwargs
165165- assert "location" not in mock_cls.call_args.kwargs
166164167165168166def test_probe_backend_aistudio():
···488486 payload = response.get_json()
489487 assert payload["key_validation"]["google"]["valid"] is True
490488 assert payload["key_validation"]["google"]["backend"] == "vertex"
491491- mock_validate.assert_called_once_with(
492492- str(journal / "config" / "vertex-credentials.json")
493493- )
489489+ mock_validate.assert_called_once()