mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 09:12:40 +02:00
test(backend): generalize native Google E2E fakes for Gmail
This commit is contained in:
parent
92dd967bf1
commit
a5c04cb38d
3 changed files with 90 additions and 14 deletions
|
|
@ -81,7 +81,7 @@ from unittest.mock import patch # noqa: E402
|
|||
from app.app import 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,
|
||||
|
|
@ -148,7 +148,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)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue