File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 44
55import pytest
66from PIL import Image , ImageStat
7- from plexapi .compat import patch
87from plexapi .exceptions import BadRequest , NotFound
98from plexapi .server import PlexServer
109from plexapi .utils import download
@@ -200,7 +199,7 @@ def test_server_isLatest(plex, mocker):
200199
201200def test_server_installUpdate (plex , mocker ):
202201 m = mocker .MagicMock (release = "aa" )
203- with patch (" plexapi.server.PlexServer.check_for_update" , return_value = m ):
202+ with utils . patch (' plexapi.server.PlexServer.check_for_update' , return_value = m ):
204203 with utils .callable_http_patch ():
205204 plex .installUpdate ()
206205
@@ -215,7 +214,7 @@ def __init__(self, **kwargs):
215214 self .downloadURL = "http://path-to-update"
216215 self .state = "downloaded"
217216
218- with patch (" plexapi.server.PlexServer.check_for_update" , return_value = R ()):
217+ with utils . patch (' plexapi.server.PlexServer.check_for_update' , return_value = R ()):
219218 rel = plex .check_for_update (force = False , download = True )
220219 assert rel .download_key == "plex.tv/release/1337"
221220 assert rel .version == "1337"
You can’t perform that action at this time.
0 commit comments