Skip to content

Commit

Permalink
Merge pull request #2 from abenezerBelachew/patch-1
Browse files Browse the repository at this point in the history
Update test_transaction.py
  • Loading branch information
isrugeek authored Aug 12, 2024
2 parents 8c19b35 + e2bb1ff commit 92a312b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_banks_command(self, mock, load_token_mock):
}
]
}
mock.get("https://api.chapa.com/v1/banks", json=banks_response, status_code=200)
mock.get("https://api.chapa.co/v1/banks", json=banks_response, status_code=200)

result = self.runner.invoke(transaction.commands['banks'])
print(f"Output: {result.output}")
Expand Down Expand Up @@ -57,7 +57,7 @@ def test_verify_command(self, mock, load_token_mock):
"updated_at": "2023-02-02T07:05:23.000000Z"
}
}
mock.get("https://api.chapa.com/v1/transaction/verify/chewatatest-6669", json=verify_response, status_code=200)
mock.get("https://api.chapa.co/v1/transaction/verify/chewatatest-6669", json=verify_response, status_code=200)

result = self.runner.invoke(transaction.commands['verify'], ["chewatatest-6669"])
print(f"Output: {result.output}")
Expand All @@ -72,10 +72,10 @@ def test_initialize_command(self, mock, load_token_mock):
"message": "Transaction initialized successfully",
"status": "success",
"data": {
"checkout_url": "https://checkout.chapa.com/3424234234DGSD$SDFSDF#"
"checkout_url": "https://checkout.chapa.co/3424234234DGSD$SDFSDF#"
}
}
mock.post("https://api.chapa.com/v1/transaction/initialize", json=init_response, status_code=200)
mock.post("https://api.chapa.co/v1/transaction/initialize", json=init_response, status_code=200)

result = self.runner.invoke(transaction.commands['initialize'], [
'--amount', '100', '--phone', '0911223344'
Expand Down

0 comments on commit 92a312b

Please sign in to comment.