Skip to content

Commit 319adf9

Browse files
authored
add collections fixture
1 parent 75a0c7b commit 319adf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ def movie(movies):
187187
return movies.get('Elephants Dream')
188188

189189

190+
@pytest.fixture()
191+
def collection(plex):
192+
return plex.library.section('Movies').collection()[0]
193+
194+
190195
@pytest.fixture()
191196
def artist(music):
192197
return music.get('Infinite State')

0 commit comments

Comments
 (0)