Skip to content
Snippets Groups Projects
Commit 72da5a07 authored by Stefano Borini's avatar Stefano Borini
Browse files

coverage

parent 0a27c45e
No related branches found
No related tags found
1 merge request!68Introduced data value object
...@@ -22,6 +22,7 @@ class TestKPIAdderCalculator(unittest.TestCase): ...@@ -22,6 +22,7 @@ class TestKPIAdderCalculator(unittest.TestCase):
model.cuba_type_out = "TOTAL_PRESSURE" model.cuba_type_out = "TOTAL_PRESSURE"
dv1 = DataValue(type="PRESSURE", value=10) dv1 = DataValue(type="PRESSURE", value=10)
dv2 = DataValue(type="PRESSURE", value=30) dv2 = DataValue(type="PRESSURE", value=30)
res = kpic.run(model, [dv1, dv2]) dv3 = DataValue(type="VOLUME", value=100)
res = kpic.run(model, [dv1, dv2, dv3])
self.assertEqual(res[0].type, "TOTAL_PRESSURE") self.assertEqual(res[0].type, "TOTAL_PRESSURE")
self.assertEqual(res[0].value, 40) self.assertEqual(res[0].value, 40)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment