Skip to content

Commit

Permalink
fix self.assertEquals test
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszh committed Aug 25, 2024
1 parent 3308e60 commit e00dedc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions webapp/tests/test_render_glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,29 +329,29 @@ def test_find_x_times_SEC(self):
(dt_out, delta_out) = glyph.find_x_times(self.dt, glyph.SEC, 1)
expected_dt = self.datetime(self.dt.year, self.dt.month, self.dt.day, self.dt.hour, self.dt.minute, self.dt.second)
expected_delta = self.timedelta(0, 1)
self.assertEquals(dt_out, expected_dt)
self.assertEquals(delta_out, expected_delta)
self.assertEqual(dt_out, expected_dt)
self.assertEqual(delta_out, expected_delta)

def test_find_x_times_MIN(self):
(dt_out, delta_out) = glyph.find_x_times(self.dt, glyph.MIN, 1)
expected_dt = self.datetime(self.dt.year, self.dt.month, self.dt.day, self.dt.hour, self.dt.minute+1)
expected_delta = self.timedelta(0, 60)
self.assertEquals(dt_out, expected_dt)
self.assertEquals(delta_out, expected_delta)
self.assertEqual(dt_out, expected_dt)
self.assertEqual(delta_out, expected_delta)

def test_find_x_times_HOUR(self):
(dt_out, delta_out) = glyph.find_x_times(self.dt, glyph.HOUR, 1)
expected_dt = self.datetime(self.dt.year, self.dt.month, self.dt.day, self.dt.hour+1, 0)
expected_delta = self.timedelta(0, 3600)
self.assertEquals(dt_out, expected_dt)
self.assertEquals(delta_out, expected_delta)
self.assertEqual(dt_out, expected_dt)
self.assertEqual(delta_out, expected_delta)

def test_find_x_times_DAY(self):
(dt_out, delta_out) = glyph.find_x_times(self.dt, glyph.DAY, 1)
expected_dt = self.datetime(self.dt.year, self.dt.month, self.dt.day+1, 0, 0)
expected_delta = self.timedelta(1)
self.assertEquals(dt_out, expected_dt)
self.assertEquals(delta_out, expected_delta)
self.assertEqual(dt_out, expected_dt)
self.assertEqual(delta_out, expected_delta)

def test_find_x_times_xconfigs(self):
for xconf in glyph.xAxisConfigs:
Expand Down

0 comments on commit e00dedc

Please sign in to comment.