From e62000098da48a01b6c6a1158494f61e3a98b0d8 Mon Sep 17 00:00:00 2001 From: Lomion Date: Thu, 11 Nov 2021 13:54:53 +0100 Subject: [PATCH] Fixed test for name without y: --- test_tmdb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)