Refactor transport calculation into shared domain
This commit is contained in:
@@ -39,6 +39,12 @@ class TemplatePdfIntegrationTests(unittest.TestCase):
|
||||
self.assertIn("const warning = result.warnings?.[0]", self.template)
|
||||
self.assertIn("const note = result.notes?.[0]", self.template)
|
||||
|
||||
def test_transport_ui_uses_shared_api_without_a_browser_capacity_calculator(self):
|
||||
self.assertIn("fetch('/api/calculations/transport'", self.template)
|
||||
self.assertIn("this.showResults(payload.analysis)", self.template)
|
||||
self.assertNotIn("calculateLoadUtilization", self.template)
|
||||
self.assertNotIn("class LoadOptimizer {", self.template)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user