Skip to content

Commit

Permalink
Merge pull request #48 from Mastercard/release/1.23.2
Browse files Browse the repository at this point in the history
Bug fix for OpenAPI Generator 7+ support.
  • Loading branch information
danny-gallagher authored Nov 27, 2024
2 parents 8569225 + 2e48de3 commit 9b7fd6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client_encryption/api_encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def call_api_function(*args, **kwargs):

response = func(*args, **kwargs)

response.data = self._decrypt_payload(response.getheaders(), response.data)
response.data = self._decrypt_payload(response.getheaders(), response.response.data)

return response

Expand Down
2 changes: 1 addition & 1 deletion client_encryption/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "1.23.1"
__version__ = "1.23.2"
4 changes: 2 additions & 2 deletions tests/utils/api_encryption_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def request(self, method, url, query_params=None, headers=None,
response.getheaders = mock_headers

if method in ["GET", "POST", "PUT"]:
response.data = json_resp
response.response.data = json_resp
else:
response.data = "OK" if check == 0 else "KO"
response.response.data = "OK" if check == 0 else "KO"

return response

Expand Down

0 comments on commit 9b7fd6c

Please sign in to comment.