Removed unncessary check for error for make_charge

This commit is contained in:
PCoder 2017-08-24 02:29:24 +05:30
commit 6484684ac5
3 changed files with 67 additions and 35 deletions

View file

@ -93,7 +93,7 @@ class CeleryTaskTestCase(TestCase):
# Check if the payment was approved
if not charge_response.get(
'response_object') and not charge_response.get('paid'):
'response_object'):
msg = charge_response.get('error')
raise Exception("make_charge failed: {}".format(msg))