From 9850ef0c3ee757891161cf5b81a12ecc639eab12 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 8 Sep 2021 21:13:41 +0100 Subject: [PATCH] Comments --- tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests.py b/tests.py index dd5babc0a..8ce77d41c 100644 --- a/tests.py +++ b/tests.py @@ -5493,6 +5493,7 @@ def _testCanReplyTo() -> None: postJsonObject['published'] = currDateStr postJsonObject['object']['published'] = currDateStr + # test a post within the reply interval postUrl = postJsonObject['object']['id'] replyIntervalHours = 2 currDateStr = "2021-09-08T21:32:10Z" @@ -5500,6 +5501,8 @@ def _testCanReplyTo() -> None: postUrl, replyIntervalHours, currDateStr, postJsonObject) + + # test a post outside of the reply interval currDateStr = "2021-09-09T09:24:47Z" assert not canReplyTo(baseDir, nickname, domain, postUrl, replyIntervalHours,