File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -288,12 +288,20 @@ def test_server_downloadDatabases(tmpdir, plex):
288
288
289
289
290
290
def test_server_browse (plex , movies ):
291
+ movies_path = movies .locations [0 ]
291
292
# browse root
292
293
paths = plex .browse ()
293
294
assert len (paths )
294
- # browse of the files of the movie lib.
295
- for path , paths , files in plex .walk (movies .locations [0 ]):
296
- assert len (files )
295
+ # browse the path of the movie library
296
+ paths = plex .browse (movies_path )
297
+ assert len (paths )
298
+ # browse the path of the movie library without files
299
+ paths = plex .browse (movies_path , includeFiles = False )
300
+ assert not len ([f for f in paths if f .TAG == 'File' ])
301
+ # walk the path of the movie library
302
+ for path , paths , files in plex .walk (movies_path ):
303
+ assert path .startswith (movies_path )
304
+ assert len (paths ) or len (files )
297
305
298
306
299
307
def test_server_allowMediaDeletion (account ):
You can’t perform that action at this time.
0 commit comments