Removed HTML unit test
This commit is contained in:
parent
88a65d3272
commit
a53cb1a56e
11
test_tmdb.py
11
test_tmdb.py
|
@ -164,17 +164,6 @@ class TestTmdbMethods(unittest.IsolatedAsyncioTestCase):
|
||||||
self.assertEqual(list.list[2]['id'], results['results'][2]['id'])
|
self.assertEqual(list.list[2]['id'], results['results'][2]['id'])
|
||||||
await list.close_session()
|
await list.close_session()
|
||||||
|
|
||||||
async def test_movie_popular_html(self):
|
|
||||||
results = await apiRequests('/movie/popular')
|
|
||||||
list = MoviePopular()
|
|
||||||
await list.load_parameters()
|
|
||||||
await list.query()
|
|
||||||
test_result = escape(results['results'][-1]['title'])
|
|
||||||
tested = list.getListHtml()
|
|
||||||
tested = tested[(len(results['results'][-1]['title']) + 8) * -1:]
|
|
||||||
self.assertEqual(tested, f"""{test_result}</a></p>""")
|
|
||||||
await list.close_session()
|
|
||||||
|
|
||||||
async def test_movie_popular_text(self):
|
async def test_movie_popular_text(self):
|
||||||
results = await apiRequests('/movie/popular')
|
results = await apiRequests('/movie/popular')
|
||||||
list = MoviePopular()
|
list = MoviePopular()
|
||||||
|
|
Loading…
Reference in a new issue