test(backend): generalize native Google E2E fakes for Gmail

This commit is contained in:
Anish Sarkar 2026-05-07 04:22:59 +05:30
parent 92dd967bf1
commit a5c04cb38d
3 changed files with 90 additions and 14 deletions

View file

@ -66,7 +66,7 @@ from unittest.mock import patch # noqa: E402
from app.celery_app import celery_app # noqa: E402
from tests.e2e.fakes import ( # noqa: E402
embeddings as _fake_embeddings,
native_google_drive as _fake_native_google_drive,
native_google as _fake_native_google,
)
from tests.e2e.fakes.chat_llm import ( # noqa: E402
fake_create_chat_litellm_from_agent_config,
@ -132,7 +132,7 @@ def _patch_llm_bindings() -> None:
_patch_llm_bindings()
_fake_embeddings.install(_active_patches)
_fake_native_google_drive.install(_active_patches)
_fake_native_google.install(_active_patches)
# ---------------------------------------------------------------------------