home · contact · privacy
Minor tests refactoring.
[plomtask] / tests / days.py
index c143f985b22b7bdd41d65e21409c2016274de54c..1f0e55d871b282881dc0fee2f7e2fc91a591d243 100644 (file)
@@ -44,12 +44,12 @@ class TestsWithDB(TestCaseWithDB):
 
     def test_Day_saving_and_caching(self) -> None:
         """Test .save/.save_core."""
-        kwargs = {'date': '2024-01-01', 'comment': 'foo'}
+        kwargs = {'date': self.default_ids[0], 'comment': 'foo'}
         self.check_saving_and_caching(**kwargs)
 
     def test_Day_from_table_row(self) -> None:
         """Test .from_table_row() properly reads in class from DB"""
-        self.check_from_table_row('2024-01-01')
+        self.check_from_table_row()
 
     def test_Day_by_id(self) -> None:
         """Test .by_id()."""