Fixed test for name without y:

This commit is contained in:
Lomion 2021-11-11 13:54:53 +01:00
parent 80782de641
commit e62000098d

View file

@ -112,9 +112,10 @@ class TestTmdbMethods(unittest.IsolatedAsyncioTestCase):
self.assertEqual(size, None)
await movie.close_session()
def test_year_no_y(self):
async def test_year_no_y(self):
movie = Movie()
id = movie.search_title('infinite 2021')
await movie.load_parameters()
id = await movie.search_title('infinite 2021')
self.assertEqual(id, None)
self.assertEqual(movie.valid, False)