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:
Abhijeet Kumar 2021-02-04 06:50:07 +05:30 committed by GitHub
parent 7864719dcc
commit a303dcb3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()