def test_update(self):
"""Function defined to test paystackapi customer update."""
httpretty.register_uri(
httpretty.PUT,
"https://api.paystack.co/customer/4013",
content_type='text/json',
body='{"status": true, "contributors": true}',
status=201,
)
response = Customer.update(customer_id=4013, first_name='andela')
self.assertEqual(response['status'], True)
评论列表
文章目录