mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
change patch_http_call so we cant just pass it.
This commit is contained in:
parent
0f16ea9cb7
commit
0cc573b477
1 changed files with 5 additions and 2 deletions
|
@ -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>')
|
||||
)
|
||||
|
||||
|
||||
# ---------------------------------
|
||||
|
|
Loading…
Reference in a new issue