mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 03:33:08 +00:00
Add test
This commit is contained in:
parent
e22bc81f35
commit
3bdb09a1c7
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from plexapi.exceptions import BadRequest
|
||||
from plexapi.playqueue import PlayQueue
|
||||
import pytest
|
||||
|
||||
|
||||
|
@ -138,3 +139,11 @@ def test_create_playqueue_from_playlist(plex, album):
|
|||
assert len(pq) == 2 * len(playlist)
|
||||
finally:
|
||||
playlist.delete()
|
||||
|
||||
|
||||
def test_lookup_playqueue(plex, movie):
|
||||
pq = PlayQueue.create(plex, movie)
|
||||
pq_id = pq.playQueueID
|
||||
pq2 = PlayQueue.get(plex, pq_id)
|
||||
assert pq.playQueueID == pq2.playQueueID
|
||||
assert pq.items == pq2.items
|
||||
|
|
Loading…
Reference in a new issue