mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-15 09:12:18 +00:00
test: preserve captured MCP toolset update fields
This commit is contained in:
parent
3dac89d2d0
commit
21fc69503a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue