This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d50c3f
commit 228d07c
Showing
12 changed files
with
114 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
BEGIN; | ||
ALTER TABLE emails RENAME TO email_addresses; | ||
ALTER TABLE email_queue RENAME TO email_messages; | ||
ALTER TABLE email_messages ADD COLUMN result text DEFAULT NULL; | ||
|
||
-- transfer dead to result | ||
UPDATE email_messages SET result='unknown failure' WHERE dead; | ||
ALTER TABLE email_messages DROP COLUMN dead; | ||
|
||
-- assume success for the rest | ||
UPDATE email_messages SET result='' WHERE result is null; | ||
END; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -630,8 +630,8 @@ def test_it_notifies_participants(self): | |
payday.end() | ||
payday.notify_participants() | ||
|
||
emails = self.db.one('SELECT * FROM email_queue') | ||
assert emails.spt_name == 'charge_'+status | ||
outbound = self.db.one("SELECT * FROM email_messages WHERE result is null") | ||
outbound.spt_name == 'charge_'+status | ||
|
||
self.app.email_queue.flush() | ||
assert self.get_last_email()['to'] == 'kalel <[email protected]>' | ||
|
Oops, something went wrong.