change patch_http_call so we cant just pass it.

This commit is contained in:
Hellowlol 2017-10-29 00:07:06 +02:00
parent 0f16ea9cb7
commit 0cc573b477

View file

@ -175,8 +175,11 @@ def empty_response(mocker):
@pytest.fixture()
def patched_http_call():
return callable_http_patch()
def patched_http_call(mocker):
return mocker.patch('plexapi.server.requests.sessions.Session.send',
return_value=MagicMock(status_code=200,
text='<xml><child></child></xml>')
)
# ---------------------------------