mirror of
https://github.com/pkkid/python-plexapi
synced 2024-09-20 13:51:57 +00:00
Add server NotFound test
This commit is contained in:
parent
a6cfe4225a
commit
049791c5cf
1 changed files with 5 additions and 0 deletions
|
@ -85,6 +85,11 @@ def _detect_color_image(file, thumb_size=150, MSE_cutoff=22, adjust_color_bias=T
|
|||
return 'blackandwhite'
|
||||
|
||||
|
||||
def test_server_fetchitem_notfound(plex):
|
||||
with pytest.raises(NotFound):
|
||||
plex.fetchItem(123456789)
|
||||
|
||||
|
||||
def test_server_search(plex, movie):
|
||||
title = movie.title
|
||||
assert plex.search(title)
|
||||
|
|
Loading…
Reference in a new issue