Expose product length calculation through MCP
This commit is contained in:
1 parent
580e9caa5e
commit
e6a7d4da72
10 files changed
+357
-7
No files matched your search
@@ -17,6 +17,11 @@ class TemplatePdfIntegrationTests(unittest.TestCase):
|
||||
self.assertIn("fetch('/api/calculations/roll'", self.template)
|
||||
self.assertIn("calculation.average_diameter_mm", self.template)
|
||||
self.assertIn("calculation.effective_roll_length_m", self.template)
|
||||
|
||||
def test_product_length_ui_uses_the_shared_domain_endpoint(self):
|
||||
self.assertIn("fetch('/api/calculations/product-length'", self.template)
|
||||
self.assertIn("calculation.average_product_length_m", self.template)
|
||||
self.assertNotIn("const L_calc = (Math.PI / (4 * t))", self.template)
|
||||
self.assertNotIn("function calculateDiameterResult", self.template)
|
||||
|
||||
def test_optional_weight_requires_both_weight_inputs(self):
|
||||
|
||||
Reference in new issue
Block a user