X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/ledger2?a=blobdiff_plain;f=tests%2Fdays.py;h=f1d13b3fe7d03a7f43e5ed263ebbe74996460e82;hb=bdb93117ce0f2b08b7b70cf43ac086afa4689c0f;hp=9fb12add44b42d4a41bb8cbec543fb40c8e20978;hpb=8f28c8c685fa91b9cbabb4b424da4091e52058cf;p=plomtask diff --git a/tests/days.py b/tests/days.py index 9fb12ad..f1d13b3 100644 --- a/tests/days.py +++ b/tests/days.py @@ -10,6 +10,8 @@ from plomtask.exceptions import BadFormatException class TestsSansDB(TestCase): """Days module tests not requiring DB setup.""" + legal_ids = ['2024-01-01'] + illegal_ids = ['foo', '2024-02-30', '2024-02-01 23:00:00'] def test_Day_valid_date(self) -> None: """Test Day's date format validation and parsing.""" @@ -82,10 +84,6 @@ class TestsWithDB(TestCaseWithDB): 'today', 'today'), [today]) - def test_Day_remove(self) -> None: - """Test .remove() effects on DB and cache.""" - self.check_remove() - class TestsWithServer(TestCaseWithServer): """Tests against our HTTP server/handler (and database)."""