mirror of https://gitlab.com/bashrc2/epicyon
Comments
parent
d38875a705
commit
9850ef0c3e
3
tests.py
3
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,
|
||||
|
|
Loading…
Reference in New Issue