test: remove delete error from mcp test

This commit is contained in:
Andrej Milicevic 2025-12-12 11:53:40 +01:00
parent 3b8a607b5f
commit c48b274571

View file

@ -408,7 +408,8 @@ DEBUG = True
else:
# Test with invalid UUIDs to check error handling
invalid_result = await session.call_tool(
try:
await session.call_tool(
"delete",
arguments={
"data_id": "invalid-uuid",
@ -416,17 +417,15 @@ DEBUG = True
"mode": "soft",
},
)
if invalid_result.content and len(invalid_result.content) > 0:
invalid_content = invalid_result.content[0].text
assert("Invalid UUID format" in invalid_content)
except Exception as e:
assert ("Invalid UUID format" in e)
self.test_results["delete_error_handling"] = {
"status": "PASS",
"result": invalid_content,
"result": e,
"message": "delete error handling works correctly",
}
print("✅ delete error handling test passed")
else:
raise Exception("Delete error test returned no content")