From 2572cd1247bbfeb0add7f623014453a51c0f6535 Mon Sep 17 00:00:00 2001 From: Jawad Khan Date: Tue, 3 Sep 2024 11:17:04 +0500 Subject: [PATCH] fix: Updated test case --- ecommerce/extensions/iap/api/v1/tests/test_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ecommerce/extensions/iap/api/v1/tests/test_utils.py b/ecommerce/extensions/iap/api/v1/tests/test_utils.py index 51e4eb86746..1968cd7b23e 100644 --- a/ecommerce/extensions/iap/api/v1/tests/test_utils.py +++ b/ecommerce/extensions/iap/api/v1/tests/test_utils.py @@ -225,8 +225,7 @@ def test_upload_screenshot_of_inapp_purchase(self, _): self.assertEqual(post_call.call_args[1]['headers'], headers) self.assertEqual(put_call.call_args[0][0], 'https://image-url.com') - img_headers = headers.copy() - img_headers['Content-Type'] = 'image/png' + img_headers = {'Content-Type': 'image/png'} self.assertEqual(put_call.call_args[1]['headers'], img_headers) img_patch_url = 'https://api.appstoreconnect.apple.com/v1/inAppPurchaseAppStoreReviewScreenshots/1234'