Private
Public Access
1
0

more coverage

This commit is contained in:
Sander Roosendaal
2021-04-26 12:11:46 +02:00
parent 544b27e7c0
commit 7626554ba9
12 changed files with 83 additions and 100 deletions

View File

@@ -99,7 +99,8 @@ class BraintreeUnits(TestCase):
res = create_customer(self.r)
self.assertEqual(res,1)
def test_update_subscription(self):
@patch('rowers.views.racesviews.myqueue')
def test_update_subscription(self, mocked_myqueue):
data = {
'plan':self.pp.id,
'payment_method_nonce':'aap',
@@ -112,7 +113,8 @@ class BraintreeUnits(TestCase):
self.assertTrue(success)
self.assertEqual(amount,25)
def test_create_subscription(self):
@patch('rowers.views.racesviews.myqueue')
def test_create_subscription(self, mocked_myqueue):
data = {
'plan':self.p2.id,
'payment_method_nonce':'aap',