mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-15 04:19:08 +00:00
The prefetch stores org entries with DEFAULT_IN_MEMORY_TTL (5s), matching
get_org_object's own write TTL, while team/user/membership prefetch entries
use the 60s management TTL. When the CI runner is slow enough that the
test's DB setup + prefetch + preceding getters take longer than 5 seconds,
the org cache entry expires before get_org_object runs and the getter
falls through to the mocked prisma client, hitting:
TypeError: object MagicMock can't be used in 'await' expression
Skip the test until the org TTL is aligned with the other management-object
entries so it is no longer timing-sensitive.
Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_auth_object_prefetch.py | ||