From d863824839111fa5335edef45d9f35a156c26d71 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Thu, 11 Jun 2015 11:27:41 -0400 Subject: [PATCH] Use API instead of SQL A little clearer and it's good to exercise the API. --- tests/py/test_billing_payday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/py/test_billing_payday.py b/tests/py/test_billing_payday.py index 5c2a9b9e2d..d70c7202a2 100644 --- a/tests/py/test_billing_payday.py +++ b/tests/py/test_billing_payday.py @@ -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()