def test_update(self):
"""Function defined to test paystackapi plan update."""
httpretty.register_uri(
httpretty.PUT,
"https://api.paystack.co/plan/78",
content_type='text/json',
body='{"status": true, "contributors": true}',
status=201,
)
response = Plan.update(plan_id=78, interval="monthly", amount=70000)
self.assertEqual(response['status'], True)
评论列表
文章目录