From 1266f50e29a7ac2ec60cdce93ef4d1a076e38d64 Mon Sep 17 00:00:00 2001 From: guille Date: Fri, 16 Feb 2024 06:01:54 +0100 Subject: [PATCH] Correct small error in unittest --- tests/test_results_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_results_import.py b/tests/test_results_import.py index 4e2bc912..a5f9a750 100644 --- a/tests/test_results_import.py +++ b/tests/test_results_import.py @@ -128,6 +128,6 @@ class TestResultsImport(TestCase): self.assertIsNotNone(building.lighting_electrical_demand) self.assertIsNotNone(building.appliances_electrical_demand) 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]) - self.assertEqual(total_demand, building.heating_demand[cte.YEAR][0], 3) + self.assertEqual(total_demand, building.heating_demand[cte.YEAR][0], 2)