test: preserve captured MCP toolset update fields

This commit is contained in:
Yuneng Jiang 2026-09-08 18:03:58 -07:00
parent 3dac89d2d0
commit 21fc69503a
No known key found for this signature in database

View file

@ -878,8 +878,8 @@ async def _run_toolset_update(payload: dict) -> dict:
mock_prisma = _mock_toolset_prisma()
await update_mcp_toolset(mock_prisma, UpdateMCPToolsetRequest.model_validate(payload), "test-user")
written = dict(mock_prisma.db.litellm_mcptoolsettable.update.call_args[1]["data"])
assert written.pop("updated_by") == "test-user"
return written
assert written["updated_by"] == "test-user"
return {name: value for name, value in written.items() if name != "updated_by"}
@pytest.mark.asyncio