mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
test_invite: Clarify by filters that no *new* ScheduledEmails are made.
This commit is contained in:
committed by
Tim Abbott
parent
83fdc59304
commit
9e972bc82c
@@ -1091,12 +1091,18 @@ so we didn't send them an invitation. We did send invitations to everyone else!"
|
||||
# Check invitation reminder email is scheduled with 4 day link expiry
|
||||
self.invite("alice@zulip.com", ["Denmark"], invite_expires_in_minutes=4 * 24 * 60)
|
||||
self.assertEqual(
|
||||
ScheduledEmail.objects.filter(type=ScheduledEmail.INVITATION_REMINDER).count(), 1
|
||||
ScheduledEmail.objects.filter(
|
||||
address="alice@zulip.com", type=ScheduledEmail.INVITATION_REMINDER
|
||||
).count(),
|
||||
1,
|
||||
)
|
||||
# Check invitation reminder email is not scheduled with 3 day link expiry
|
||||
self.invite("bob@zulip.com", ["Denmark"], invite_expires_in_minutes=3 * 24 * 60)
|
||||
self.assertEqual(
|
||||
ScheduledEmail.objects.filter(type=ScheduledEmail.INVITATION_REMINDER).count(), 1
|
||||
ScheduledEmail.objects.filter(
|
||||
address="bob@zulip.com", type=ScheduledEmail.INVITATION_REMINDER
|
||||
).count(),
|
||||
0,
|
||||
)
|
||||
|
||||
# make sure users can't take a valid confirmation key from another
|
||||
|
||||
Reference in New Issue
Block a user