Correct small error in unittest

This commit is contained in:
Guille Gutierrez 2024-02-16 06:01:54 +01:00
parent 674393970c
commit 1266f50e29

View File

@ -128,6 +128,6 @@ class TestResultsImport(TestCase):
self.assertIsNotNone(building.lighting_electrical_demand) self.assertIsNotNone(building.lighting_electrical_demand)
self.assertIsNotNone(building.appliances_electrical_demand) self.assertIsNotNone(building.appliances_electrical_demand)
total_demand = sum(building.heating_demand[cte.HOUR]) total_demand = sum(building.heating_demand[cte.HOUR])
self.assertAlmostEqual(total_demand, building.heating_demand[cte.YEAR][0], 3) self.assertAlmostEqual(total_demand, building.heating_demand[cte.YEAR][0], 2)
total_demand = sum(building.heating_demand[cte.MONTH]) total_demand = sum(building.heating_demand[cte.MONTH])
self.assertEqual(total_demand, building.heating_demand[cte.YEAR][0], 3) self.assertEqual(total_demand, building.heating_demand[cte.YEAR][0], 2)