X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=tests%2Ftest_days.py;h=f35e6b2725cdc3545f4490d7d8fe94f940704004;hb=5a1e4ec7d9671dd9aa40d05e2af0d7ab25ea8911;hp=ba91c057a1d38bbe1aaef197e2adeb320fcc2f94;hpb=12bbfea600184c9e2657cc9a0c705848a4dae29a;p=plomtask diff --git a/tests/test_days.py b/tests/test_days.py index ba91c05..f35e6b2 100644 --- a/tests/test_days.py +++ b/tests/test_days.py @@ -93,18 +93,6 @@ class TestsWithDB(TestCase): today.save(self.db_conn) self.assertEqual(Day.all(self.db_conn, ('today', 'today')), [today]) - def test_Day_comment(self): - """Test Day.comment.""" - self.assertEqual(None, Day.by_date(self.db_conn, '2024-01-01')) - d1 = Day('2024-01-01') - d1.save(self.db_conn) - day_retrieved = Day.by_date(self.db_conn, d1.date) - self.assertEqual(day_retrieved.comment, '') - d2 = Day('2024-01-02', 'foo') - d2.save(self.db_conn) - day_retrieved = Day.by_date(self.db_conn, d2.date) - self.assertEqual(day_retrieved.comment, 'foo') - def test_Day_neighbor_dates(self): """Test Day.prev_date and Day.next_date.""" self.assertEqual(Day('2024-01-01').prev_date, '2023-12-31')