Specify MCP delete results and accept hydration decimal precision

This commit is contained in:
Joren de Graaf
2026-11-04 00:41:59 +01:00
parent 92687cd82b
commit 01133370e6
4 changed files with 40 additions and 4 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ class McpHttpTests(LiveServerTestCase):
'unit': 'ml', 'product_id': str(drink.api_id)}})
self.assertFalse(food.is_error, food)
daily = (await client.call_tool('hydration_get_daily')).structured_content
self.assertEqual(daily['food_ml'], '200.000')
self.assertEqual(Decimal(daily['food_ml']), Decimal('200'))
manual = (await client.call_tool('hydration_log', {'amount_ml': '125',
'idempotency_key': 'mcp-hydration-1'})).structured_content
self.assertEqual(manual['amount_ml'], '125')