Skip to content

Commit 3165ace

Browse files
committed
fix test
1 parent fb2c00e commit 3165ace

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/user_test.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
),
113113
)
114114

115-
BaseTestCase.registerHttpPostHandler(
115+
BaseTestCase.registerHttpDeleteHandler(
116116
url="https://127.0.0.1:8080/api/v1/user/999",
117117
response=MockResponse(
118118
text_data="Not found.",
@@ -123,6 +123,13 @@
123123
),
124124
)
125125

126+
BaseTestCase.registerHttpDeleteHandler(
127+
url="https://127.0.0.1:8080/api/v1/user/123",
128+
response=MockResponse(
129+
text_data="", json_data={}, status_code=200, headers={},
130+
),
131+
)
132+
126133

127134
class TestUsers(TestCase):
128135
@patch("requests.get", side_effect=BaseTestCase.httpGetHandlers)

0 commit comments

Comments
 (0)