Skip to content

Commit 0cc573b

Browse files
committed
change patch_http_call so we cant just pass it.
1 parent 0f16ea9 commit 0cc573b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,11 @@ def empty_response(mocker):
175175

176176

177177
@pytest.fixture()
178-
def patched_http_call():
179-
return callable_http_patch()
178+
def patched_http_call(mocker):
179+
return mocker.patch('plexapi.server.requests.sessions.Session.send',
180+
return_value=MagicMock(status_code=200,
181+
text='<xml><child></child></xml>')
182+
)
180183

181184

182185
# ---------------------------------

0 commit comments

Comments
 (0)