Skip to content

Commit 323ac9e

Browse files
committed
update tests
1 parent 4fd6643 commit 323ac9e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test_besmod_output.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def test_convert_heating_profile(self):
171171
t_set_zone_nominal, start_time, width, amplitude = _convert_heating_profile(heating_profile)
172172
self.assertEqual(t_set_zone_nominal, 293.15)
173173
self.assertAlmostEqual(start_time, 0)
174-
self.assertAlmostEqual(width, 1e-50)
174+
self.assertAlmostEqual(width, 0)
175175
self.assertEqual(amplitude, 0)
176176
heating_profile = [290.15,
177177
290.15,
@@ -200,8 +200,8 @@ def test_convert_heating_profile(self):
200200
t_set_zone_nominal, start_time, width, amplitude = _convert_heating_profile(heating_profile)
201201
self.assertEqual(t_set_zone_nominal, 293.15)
202202
self.assertAlmostEqual(start_time, 0)
203-
self.assertAlmostEqual(width, 6 / 24 * 100)
204-
self.assertEqual(amplitude, -3)
203+
self.assertAlmostEqual(width, 6)
204+
self.assertEqual(amplitude, 3)
205205
heating_profile = [293.15,
206206
293.15,
207207
293.15,
@@ -229,8 +229,8 @@ def test_convert_heating_profile(self):
229229
t_set_zone_nominal, start_time, width, amplitude = _convert_heating_profile(heating_profile)
230230
self.assertEqual(t_set_zone_nominal, 293.15)
231231
self.assertAlmostEqual(start_time, 20 * 3600)
232-
self.assertAlmostEqual(width, 4 / 24 * 100)
233-
self.assertEqual(amplitude, -3)
232+
self.assertAlmostEqual(width, 4)
233+
self.assertEqual(amplitude, 3)
234234
heating_profile = [290.15,
235235
293.15,
236236
293.15,
@@ -258,5 +258,5 @@ def test_convert_heating_profile(self):
258258
t_set_zone_nominal, start_time, width, amplitude = _convert_heating_profile(heating_profile)
259259
self.assertEqual(t_set_zone_nominal, 293.15)
260260
self.assertAlmostEqual(start_time, 23 * 3600)
261-
self.assertAlmostEqual(width, 2 / 24 * 100)
262-
self.assertEqual(amplitude, -3)
261+
self.assertAlmostEqual(width, 2)
262+
self.assertEqual(amplitude, 3)

0 commit comments

Comments
 (0)