litellm/tests/proxy_behavior
Cursor Agent 18743ea2e1
test(auth): skip test_join_binds_the_membership_to_the_requested_team while org cache TTL is short
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>
2026-09-13 05:17:12 +00:00
..
auth test(auth): skip test_join_binds_the_membership_to_the_requested_team while org cache TTL is short 2026-09-13 05:17:12 +00:00
management feat(team): report per-user spend within a team for JWT traffic (#39771) 2026-09-04 12:00:47 -07:00
spend fix(proxy): attribute gate-rejected requests to their endpoint in cache analytics (#40824) 2026-09-12 16:03:38 -07:00
__init__.py feat(tests): behavior-pinning harness + Key Tier-1 matrix (#28321) 2026-05-20 19:27:44 -07:00