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()