Expose product length calculation through MCP
This commit is contained in:
@@ -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