File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -90,19 +90,19 @@ def get_client():
90
90
return client
91
91
92
92
93
- # pylint: disable=no-method-argument
94
- def mocked_login_post (* args , ** kwargs ):
95
- if args [0 ] == "https://127.0.0.1:8080/api/v1/login" :
96
- return MockResponse (
97
- json_data = {},
98
- status_code = 200 ,
99
- headers = {
100
- "location" : (
101
- "/api/v1/session/df1bfacb-xxxx-xxxx-xxxx-c8f57d8f3c71"
102
- )
103
- },
104
- )
105
- raise RuntimeError ("Unhandle POST request: " + args [0 ])
93
+ # # pylint: disable=no-method-argument
94
+ # def mocked_login_post(*args, **kwargs):
95
+ # if args[0] == "https://127.0.0.1:8080/api/v1/login":
96
+ # return MockResponse(
97
+ # json_data={},
98
+ # status_code=200,
99
+ # headers={
100
+ # "location": (
101
+ # "/api/v1/session/df1bfacb-xxxx-xxxx-xxxx-c8f57d8f3c71"
102
+ # )
103
+ # },
104
+ # )
105
+ # raise RuntimeError("Unhandle POST request: " + args[0])
106
106
107
107
108
108
@six .add_metaclass (abc .ABCMeta )
Original file line number Diff line number Diff line change 24
24
import six
25
25
from mock import patch
26
26
27
- from .base_test import BaseTestCase , MockResponse , mocked_login_post
27
+ from .base_test import BaseTestCase , MockResponse
28
28
from .lock_mock_api_responses import mockApiSetup
29
29
30
30
# setup the mock data
You can’t perform that action at this time.
0 commit comments