mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
add test for missing attr
This commit is contained in:
parent
90217b060f
commit
08c24fce0d
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,9 @@ def test_video_Movie(movies, movie):
|
|||
movie2 = movies.get(movie.title)
|
||||
assert movie2.title == movie.title
|
||||
|
||||
def test_video_Movie_attributeerror(movie):
|
||||
with pytest.raises(AttributeError):
|
||||
movie.asshat
|
||||
|
||||
def test_video_Movie_delete(monkeypatch, movie):
|
||||
monkeypatch.delattr('requests.sessions.Session.request')
|
||||
|
|
Loading…
Reference in a new issue