Skip to content

Commit 9b7fd6c

Browse files
Merge pull request #48 from Mastercard/release/1.23.2
Bug fix for OpenAPI Generator 7+ support.
2 parents 8569225 + 2e48de3 commit 9b7fd6c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

client_encryption/api_encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def call_api_function(*args, **kwargs):
6060

6161
response = func(*args, **kwargs)
6262

63-
response.data = self._decrypt_payload(response.getheaders(), response.data)
63+
response.data = self._decrypt_payload(response.getheaders(), response.response.data)
6464

6565
return response
6666

client_encryption/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
__version__ = "1.23.1"
3+
__version__ = "1.23.2"

tests/utils/api_encryption_test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def request(self, method, url, query_params=None, headers=None,
105105
response.getheaders = mock_headers
106106

107107
if method in ["GET", "POST", "PUT"]:
108-
response.data = json_resp
108+
response.response.data = json_resp
109109
else:
110-
response.data = "OK" if check == 0 else "KO"
110+
response.response.data = "OK" if check == 0 else "KO"
111111

112112
return response
113113

0 commit comments

Comments
 (0)