Skip to content

Commit 5753218

Browse files
committed
SDK-1076: Update MockResponse to inherit from YotiResponse
1 parent de533ce commit 5753218

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

yoti_python_sdk/tests/mocks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from uuid import UUID
22
from yoti_python_sdk.http import RequestHandler, SignedRequest
3+
from yoti_python_sdk.http import YotiResponse
34

45

5-
class MockResponse:
6+
class MockResponse(YotiResponse):
67
def __init__(self, status_code, text):
7-
self.status_code = status_code
8-
self.text = text
8+
super(MockResponse, self).__init__(status_code, text)
99

1010

1111
class MockRequestHandler(RequestHandler):

0 commit comments

Comments
 (0)