File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -269,3 +269,15 @@ def test_server_downloadLogs(tmpdir, plex):
269269def test_server_downloadDatabases (tmpdir , plex ):
270270 plex .downloadDatabases (savepath = str (tmpdir ), unpack = True )
271271 assert len (tmpdir .listdir ()) > 1
272+
273+ def test_server_allowMediaDeletion (account ):
274+ plex = PlexServer (utils .SERVER_BASEURL , account .authenticationToken )
275+ plex ._allowMediaDeletion (True )
276+ time .sleep (1 )
277+ plex = PlexServer (utils .SERVER_BASEURL , account .authenticationToken )
278+ assert plex .allowMediaDeletion == True
279+ plex = PlexServer (utils .SERVER_BASEURL , account .authenticationToken )
280+ plex ._allowMediaDeletion (False )
281+ time .sleep (1 )
282+ plex = PlexServer (utils .SERVER_BASEURL , account .authenticationToken )
283+ assert plex .allowMediaDeletion == None
You can’t perform that action at this time.
0 commit comments