diff --git a/test_tmdb.py b/test_tmdb.py index 9e6276a..d7eefda 100644 --- a/test_tmdb.py +++ b/test_tmdb.py @@ -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)