Private
Public Access
1
0

increasing test coverage - teams first pass done

This commit is contained in:
Sander Roosendaal
2019-01-23 17:01:41 +01:00
parent 5b9b756fef
commit b63a88cbcc
4 changed files with 6 additions and 6 deletions

View File

@@ -224,6 +224,9 @@ class MockStravalibClient():
## Higher level - unfortunately didn't succeed in mocking the gateway
def get_client_token(*args, **kwargs):
return "aap"
def mock_create_customer(*args, **kwargs):
return 121

View File

@@ -54,7 +54,8 @@ class PaymentTest(TestCase):
# settings.DEBUG = False
@patch('rowers.views.braintreestuff.create_customer',side_effect=mock_create_customer)
def test_billing_view(self,mocked_create_customer):
@patch('rowers.views.braintreestuff.gateway',side_effect=MockBraintreeGateway)
def test_billing_view(self,mocked_create_customer,mocked_gateway):
u = UserFactory()
r = Rower.objects.create(user=u,
birthdate=faker.profile()['birthdate'],

Binary file not shown.

View File

@@ -2502,11 +2502,7 @@
</Trackpoint>
</Track>
</Lap>
<<<<<<< HEAD
<Notes>&lt;Element 'Notes' at 0x13db9b70&gt;</Notes>
=======
<Notes>&lt;Element 'Notes' at 0x11aaf780&gt;</Notes>
>>>>>>> develop
<Notes>&lt;Element 'Notes' at 0x13f67128&gt;</Notes>
</Activity>
</Activities>
<Creator>