mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
test(proxy): stop asserting on the dependency test's own lifespan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
dbc99e4b27
commit
0eaba1eff6
1 changed files with 0 additions and 4 deletions
|
|
@ -48,8 +48,6 @@ def test_lifespan_database_is_shared_until_shutdown():
|
|||
|
||||
def test_both_repositories_use_the_lifespan_database():
|
||||
prisma: Final = MagicMock()
|
||||
prisma.disconnect = AsyncMock()
|
||||
prisma.stop_background_tasks = AsyncMock()
|
||||
prisma.db.litellm_uisettings.find_unique = AsyncMock(
|
||||
return_value=SimpleNamespace(ui_settings={"message": "stored banner"})
|
||||
)
|
||||
|
|
@ -60,8 +58,6 @@ def test_both_repositories_use_the_lifespan_database():
|
|||
with TestClient(_app(database_runtime.Database(prisma=prisma))) as client:
|
||||
assert client.get("/banner").json() == UserBanner(message="stored banner").model_dump()
|
||||
assert client.get("/ignores").json() == stored_ignores
|
||||
prisma.disconnect.assert_not_awaited()
|
||||
prisma.disconnect.assert_awaited_once()
|
||||
|
||||
|
||||
def test_no_database_state_preserves_optional_repository():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue