Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #4576 from redixhumayun/master
Browse files Browse the repository at this point in the history
TestNotifyParticipants uses QueuedEmailHarness
  • Loading branch information
rohitpaulk authored Aug 18, 2017
2 parents f556b4f + d9796cf commit 57cb9db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Empty file added 1502977545.32_payments.csv
Empty file.
6 changes: 3 additions & 3 deletions tests/py/test_billing_payday.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from gratipay.models.participant import Participant
from gratipay.testing import Foobar, D,P
from gratipay.testing.billing import BillingHarness, PaydayMixin
from gratipay.testing.email import SentEmailHarness
from gratipay.testing.email import QueuedEmailHarness


class TestPayday(BillingHarness):
Expand Down Expand Up @@ -616,7 +616,7 @@ def test_pt_is_happy_to_deal_the_owner_in(self):
assert P('picard').balance == D('200.00')


class TestNotifyParticipants(SentEmailHarness, PaydayMixin):
class TestNotifyParticipants(QueuedEmailHarness, PaydayMixin):

def test_it_notifies_participants(self):
kalel = self.make_participant('kalel', claimed_time='now', is_suspicious=False,
Expand All @@ -633,7 +633,7 @@ def test_it_notifies_participants(self):
emails = self.db.one('SELECT * FROM email_queue')
assert emails.spt_name == 'charge_'+status

self.app.email_queue.flush()
assert self.get_last_email()['to'] == 'kalel <[email protected]>'
assert 'Gratiteam' in self.get_last_email()['body_text']
assert 'Gratiteam' in self.get_last_email()['body_html']
self.app.email_queue.flush()

0 comments on commit 57cb9db

Please sign in to comment.