From ebcadd2996e5335fad3a89e844ea3d8e4f7ee618 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 20 Dec 2021 00:19:24 -0500 Subject: [PATCH] incorrect exception --- tests/test_library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_library.py b/tests/test_library.py index a002b892..31baf63c 100644 --- a/tests/test_library.py +++ b/tests/test_library.py @@ -156,7 +156,7 @@ def test_library_add_edit_delete(plex, movies, photos): scanner="Plex Video Files Scanner", language="en", ) - with pytest.raises(BadRequest): + with pytest.raises(NotFound): plex.library.section(error_section_name) new_title = "a renamed lib" section.edit(name=new_title)