Skip to content

Commit 5233146

Browse files
committed
more refactoring
Signed-off-by: Chris Snow <[email protected]>
1 parent a40be1c commit 5233146

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/base_test.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@ def get_client():
9090
return client
9191

9292

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])
106106

107107

108108
@six.add_metaclass(abc.ABCMeta)

tests/lock_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import six
2525
from mock import patch
2626

27-
from .base_test import BaseTestCase, MockResponse, mocked_login_post
27+
from .base_test import BaseTestCase, MockResponse
2828
from .lock_mock_api_responses import mockApiSetup
2929

3030
# setup the mock data

0 commit comments

Comments
 (0)