Skip to content

Commit 2d2dfd6

Browse files
tst: notifications: fix docstrings
1 parent c3c644c commit 2d2dfd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_notifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def test_notification_interval_exceeded_no_last_sent(self):
3737
self.assertTrue(context.notification_interval_exceeded())
3838

3939
def test_notification_interval_exceeded_last_sent_old_enough(self):
40-
"""Notification interval is exceeded if no mail has been sent before"""
40+
"""Notification interval is exceeded if last mail is too old"""
4141
context = self.context_with_directive(
4242
last_sent=datetime.now(timezone.utc) - timedelta(hours=3),
4343
notification_interval=timedelta(hours=2))
4444
self.assertTrue(context.notification_interval_exceeded())
4545

4646
def test_notification_interval_exceeded_last_sent_too_new(self):
47-
"""Notification interval is exceeded if no mail has been sent before"""
47+
"""Notification interval is not exceeded if last mail was sent in interval"""
4848
context = self.context_with_directive(
4949
last_sent=datetime.now(timezone.utc) - timedelta(hours=1),
5050
notification_interval=timedelta(hours=2))

0 commit comments

Comments
 (0)