Added vote average
This commit is contained in:
parent
413015b509
commit
82a6c7d4f9
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue