From 1dc72c1831bd67b600250df6b13c897ea21e240d Mon Sep 17 00:00:00 2001 From: Dev Mukherjee Date: Tue, 19 Dec 2023 08:36:13 +1100 Subject: [PATCH] fix: async await issue in test --- tests/test_cardholder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_cardholder.py b/tests/test_cardholder.py index 61e6d1d1..ed57c341 100644 --- a/tests/test_cardholder.py +++ b/tests/test_cardholder.py @@ -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)