From 7f589c24dde661b322e6b9a7aa73f39adc2ab9f6 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 19 Apr 2024 12:56:28 -0700 Subject: [PATCH] Test for `NotFound` exception when adding to watchlist (#1403) --- tests/test_myplex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_myplex.py b/tests/test_myplex.py index aac4e84b3..e17358bb5 100644 --- a/tests/test_myplex.py +++ b/tests/test_myplex.py @@ -310,7 +310,7 @@ def test_myplex_watchlist(account, movie, show, artist): account.removeFromWatchlist(movie) # Test adding invalid item to watchlist - with pytest.raises(BadRequest): + with pytest.raises((BadRequest, NotFound)): account.addToWatchlist(artist)