From cc707dbc18bd0932398c90fac041ae64cb0fc923 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 28 Feb 2024 20:14:02 -0800 Subject: [PATCH] Add test for reload kwargs --- tests/test_video.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_video.py b/tests/test_video.py index 9ad81c028..328cfabf6 100644 --- a/tests/test_video.py +++ b/tests/test_video.py @@ -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()