Skip to content

Commit

Permalink
Add test for reload kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyWong16 committed Feb 29, 2024
1 parent 2bc8116 commit 099a5c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,16 @@ def test_video_Movie_isFullObject_and_reload(plex):
assert len(movie_via_section_search.roles) >= 3


def test_video_Movie_reload_kwargs(movie):
assert len(movie.media)
assert movie.summary is not None
assert movie.thumbBlurHash is not None
movie.reload(includeFields=False, **movie._EXCLUDES)
assert movie.__dict__.get('media') == []
assert movie.__dict__.get('summary') is None
assert movie.__dict__.get('thumbBlurHash') is None


def test_video_movie_watched(movie):
movie.markUnplayed()
movie.markPlayed()
Expand Down

0 comments on commit 099a5c4

Please sign in to comment.