mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 17:22:38 +02:00
test(backend): add E2E harness foundation (entrypoints, middleware, LLM/embedding fakes)
This commit is contained in:
parent
c720866a67
commit
58ba95fad2
9 changed files with 550 additions and 0 deletions
8
surfsense_backend/tests/e2e/fakes/__init__.py
Normal file
8
surfsense_backend/tests/e2e/fakes/__init__.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
"""Strict fakes for third-party SDKs, used in E2E mode only.
|
||||
|
||||
Every fake here implements __getattr__ that raises NotImplementedError
|
||||
on any unknown surface. Combined with sys.modules-level hijacking in
|
||||
run_backend.py / run_celery.py, this makes silent pass-through to the
|
||||
real SDK impossible: a future production code path that introduces a
|
||||
new SDK call site fails CI with a clear "add this to the fake" message.
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue