From 334288ed8765eb61c4a526fb8fc16ef3a5db88e3 Mon Sep 17 00:00:00 2001 From: Guille Date: Tue, 18 Jul 2023 09:48:44 -0400 Subject: [PATCH] improve unit tests --- tests/unit_tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit_tests.py b/tests/unit_tests.py index 529300f..e25bc93 100644 --- a/tests/unit_tests.py +++ b/tests/unit_tests.py @@ -49,6 +49,7 @@ class UnitTests(TestCase): for building in self._city.buildings: result = Cost(building).life_cycle self.assertIsNotNone(result) + self.assertEqual(0, result.values[0]) def test_scenario_1(self): for building in self._city.buildings: @@ -57,12 +58,13 @@ class UnitTests(TestCase): def test_scenario_2(self): for building in self._city.buildings: - result = Cost(building, retrofit_scenario=SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV).life_cycle + result = Cost(building, retrofit_scenario=SYSTEM_RETROFIT_AND_PV).life_cycle self.assertIsNotNone(result) + self.assertEqual(0, result.values[0]) def test_scenario_3(self): for building in self._city.buildings: - result = Cost(building, retrofit_scenario=SYSTEM_RETROFIT_AND_PV).life_cycle + result = Cost(building, retrofit_scenario=SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV).life_cycle self.assertIsNotNone(result) def tearDown(self):