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 cc707db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,14 @@ 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
movie.reload(includeFields=False, **movie._EXCLUDES)
assert movie.__dict__.get('media') == []
assert movie.__dict__.get('summary') is None


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

0 comments on commit cc707db

Please sign in to comment.