Skip to content

Commit

Permalink
fix: async await issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
devraj committed Dec 18, 2023
1 parent cc2be32 commit 1dc72c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_cardholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ async def test_cardholder_detail():

for cardholder_summary in response.results:
# Get the detail of the cardholder for comparison
cardholder_detail_response = Cardholder.retrieve(cardholder_summary.id)
cardholder_detail_response = await Cardholder.retrieve(
cardholder_summary.id
)
assert type(cardholder_detail_response) is CardholderDetail
assert (cardholder_detail_response.id == cardholder_summary.id)

0 comments on commit 1dc72c1

Please sign in to comment.