diff --git a/emails/verification_notice.spt b/emails/verification-notice.spt similarity index 100% rename from emails/verification_notice.spt rename to emails/verification-notice.spt diff --git a/gratipay/models/participant/email.py b/gratipay/models/participant/email.py index 822334e972..ae4fcb62f2 100644 --- a/gratipay/models/participant/email.py +++ b/gratipay/models/participant/email.py @@ -73,7 +73,7 @@ def start_email_verification(self, email, *packages): ) if self.email_address: self.app.email_queue.put( self - , 'verification_notice' + , 'verification-notice' , new_email=email , include_unsubscribe=False diff --git a/tests/py/test_email.py b/tests/py/test_email.py index 5c8b35af1e..48ef5a44ad 100644 --- a/tests/py/test_email.py +++ b/tests/py/test_email.py @@ -310,7 +310,7 @@ def test_html_escaping(self): def test_queueing_email_is_throttled(self): self.app.email_queue.put(self.alice, "verification") self.app.email_queue.put(self.alice, "branch") - self.app.email_queue.put(self.alice, "verification_notice") + self.app.email_queue.put(self.alice, "verification-notice") raises(Throttled, self.app.email_queue.put, self.alice, "branch") def test_only_user_initiated_messages_count_towards_throttling(self): @@ -318,8 +318,8 @@ def test_only_user_initiated_messages_count_towards_throttling(self): self.app.email_queue.put(self.alice, "verification", _user_initiated=False) self.app.email_queue.put(self.alice, "branch") self.app.email_queue.put(self.alice, "branch", _user_initiated=False) - self.app.email_queue.put(self.alice, "verification_notice") - self.app.email_queue.put(self.alice, "verification_notice", _user_initiated=False) + self.app.email_queue.put(self.alice, "verification-notice") + self.app.email_queue.put(self.alice, "verification-notice", _user_initiated=False) raises(Throttled, self.app.email_queue.put, self.alice, "branch") def test_flushing_queue_resets_throttling(self): @@ -327,9 +327,9 @@ def test_flushing_queue_resets_throttling(self): assert self.app.email_queue.flush() == 1 self.app.email_queue.put(self.alice, "verification") self.app.email_queue.put(self.alice, "branch") - self.app.email_queue.put(self.alice, "verification_notice") + self.app.email_queue.put(self.alice, "verification-notice") assert self.app.email_queue.flush() == 3 - self.app.email_queue.put(self.alice, "verification_notice") + self.app.email_queue.put(self.alice, "verification-notice") class FlushEmailQueue(SentEmailHarness):