Beispiel #1
0
 def test_does_not_return_reminder_when_is_finished_is_false_and_it_is_not_due(
     self, reminder, time
 ):
     with freeze_time(time):
         assert Reminder.due_now().count() == 0
Beispiel #2
0
    def test_does_not_return_finished_reminders(self, reminder):
        reminder.finish()

        assert Reminder.due_now().count() == 0
    def test_does_not_return_finished_reminders(self, reminder, time):
        reminder.finish()

        with freeze_time(time):
            assert Reminder.due_now().count() == 0