Fix: function description in test_module.py (#2)
Fix: function description in test_module.py fix test_two_days_later_with_day function's assertEqual message in test_module.py
This commit is contained in:
parent
7864719dcc
commit
a303dcb3be
@ -57,7 +57,7 @@ class UnitTests(unittest.TestCase):
|
|||||||
def test_two_days_later_with_day(self):
|
def test_two_days_later_with_day(self):
|
||||||
actual = add_time("11:59 PM", "24:05", "Wednesday")
|
actual = add_time("11:59 PM", "24:05", "Wednesday")
|
||||||
expected = "12:04 AM, Friday (2 days later)"
|
expected = "12:04 AM, Friday (2 days later)"
|
||||||
self.assertEqual(actual, expected, 'Expected calling "add_time()" with "2:59 AM", "24:00", "Friday" to return "12:04 AM, Friday (2 days later)"')
|
self.assertEqual(actual, expected, 'Expected calling "add_time()" with "11:59 PM", "24:05", "Wednesday" to return "12:04 AM, Friday (2 days later)"')
|
||||||
|
|
||||||
def test_high_duration_with_day(self):
|
def test_high_duration_with_day(self):
|
||||||
actual = add_time("8:16 PM", "466:02", "tuesday")
|
actual = add_time("8:16 PM", "466:02", "tuesday")
|
||||||
@ -65,4 +65,4 @@ class UnitTests(unittest.TestCase):
|
|||||||
self.assertEqual(actual, expected, 'Expected calling "add_time()" with "8:16 PM", "466:02", "tuesday" to return "6:18 AM, Monday (20 days later)"')
|
self.assertEqual(actual, expected, 'Expected calling "add_time()" with "8:16 PM", "466:02", "tuesday" to return "6:18 AM, Monday (20 days later)"')
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user