Skip to content

Commit 049791c

Browse files
committed
Add server NotFound test
1 parent a6cfe42 commit 049791c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_server.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ def _detect_color_image(file, thumb_size=150, MSE_cutoff=22, adjust_color_bias=T
8585
return 'blackandwhite'
8686

8787

88+
def test_server_fetchitem_notfound(plex):
89+
with pytest.raises(NotFound):
90+
plex.fetchItem(123456789)
91+
92+
8893
def test_server_search(plex, movie):
8994
title = movie.title
9095
assert plex.search(title)

0 commit comments

Comments
 (0)