From 82a6c7d4f9b5a894f8174c0ddaa8fd6eac72eee8 Mon Sep 17 00:00:00 2001 From: markus Date: Wed, 10 Nov 2021 15:38:28 +0100 Subject: [PATCH] Added vote average --- test_tmdb.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test_tmdb.py b/test_tmdb.py index 0392bac..3219161 100644 --- a/test_tmdb.py +++ b/test_tmdb.py @@ -37,6 +37,14 @@ class TestTmdbMethods(unittest.IsolatedAsyncioTestCase): self.assertEqual(vote, 7.8) await movie.close_session() + async def test_vote(self): + movie = Movie() + await movie.load_parameters() + await movie.search_title('Dune') + vote = movie.vote_average + self.assertEqual(vote, 8.0) + await movie.close_session() + async def test_cast(self): movie = Movie() await movie.load_parameters()