Skip to content

Commit

Permalink
fix test sample response
Browse files Browse the repository at this point in the history
  • Loading branch information
zakiarsyad committed May 19, 2022
1 parent 27843e8 commit 99a6b19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/integration/test_credit_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def test_reverse_authorization_return_correct_keys(self, CreditCard):
external_id=f"card_preAuth-{int(time.time())}",
amount=75000,
card_cvn="123",
metadata={
"meta": "data",
},
)
reverse_auth = CreditCard.reverse_authorization(
credit_card_charge_id=charge.id,
Expand Down
3 changes: 1 addition & 2 deletions tests/sampleresponse/credit_card.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
def reverse_auth_response():
return {
"status": "SUCCEEDED",
"currency": "IDR",
"credit_card_charge_id": "5f0421fa8cc1e8001973a1d6",
"business_id": "5ed75086a883856178afc12e",
"external_id": "card_preAuth-1594106356",
Expand Down Expand Up @@ -32,7 +31,7 @@ def charge_response():
"created": "2020-07-07T07:19:22.921Z",
"id": "5f0421fa8cc1e8001973a1d6",
"metadata": {
"meta": "data"
"meta": "data",
},
}

Expand Down

0 comments on commit 99a6b19

Please sign in to comment.