File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 22from collections import namedtuple
33from datetime import datetime , timedelta
44import pytest
5+ import plexapi .base
56from plexapi .exceptions import BadRequest , NotFound
67
78from . import conftest as utils
@@ -58,6 +59,19 @@ def test_library_section_movies_all(movies):
5859 assert len (movies .all (container_start = 0 , container_size = 1 , maxresults = 1 )) == 1
5960
6061
62+ def test_library_section_movies_all_guids (movies ):
63+ plexapi .base .USER_DONT_RELOAD_FOR_KEYS .add ('guids' )
64+ try :
65+ results = movies .all (includeGuids = False )
66+ assert results [0 ].guids == []
67+ results = movies .all ()
68+ assert results [0 ].guids
69+ movie = movies .get ("Sita Sings the Blues" )
70+ assert movie .guids
71+ finally :
72+ plexapi .base .USER_DONT_RELOAD_FOR_KEYS .remove ('guids' )
73+
74+
6175def test_library_section_totalViewSize (tvshows ):
6276 assert tvshows .totalViewSize () == 2
6377 assert tvshows .totalViewSize (libtype = "show" ) == 2
You can’t perform that action at this time.
0 commit comments