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

Commit

Permalink
Use API instead of SQL
Browse files Browse the repository at this point in the history
A little clearer and it's good to exercise the API.
  • Loading branch information
chadwhitacre committed Jun 11, 2015
1 parent dc65fce commit d863824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/py/test_billing_payday.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def test_payin_pays_in(self, sale, sfs, fch):
@mock.patch('braintree.Transaction.sale')
def test_payin_doesnt_try_failed_cards(self, sale):
team = self.make_team('Gratiteam', is_approved=True)
self.db.run("UPDATE exchange_routes SET error='error' WHERE participant = %s", (self.obama.id, ))
self.obama_route.update_error('error')
self.obama.set_subscription_to(team, 1)

Payday.start().payin()
Expand Down

0 comments on commit d863824

Please sign in to comment.