Added vote average

This commit is contained in:
markus 2021-11-10 15:38:28 +01:00 committed by Scott Wallace
parent 413015b509
commit 82a6c7d4f9
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

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