Skip to content

Commit 5911597

Browse files
committed
forgot one file.
1 parent 8ac2edb commit 5911597

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import pytest
66
from PIL import Image, ImageStat
7-
from plexapi.compat import patch
87
from plexapi.exceptions import BadRequest, NotFound
98
from plexapi.server import PlexServer
109
from plexapi.utils import download
@@ -200,7 +199,7 @@ def test_server_isLatest(plex, mocker):
200199

201200
def 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"

0 commit comments

Comments
 (0)