From db400f388e2498fa8861953a591572e97066eefb Mon Sep 17 00:00:00 2001 From: bhodaya Date: Tue, 5 May 2020 13:06:08 +0300 Subject: [PATCH] download video --- test/ci/test_tiktok.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ci/test_tiktok.py b/test/ci/test_tiktok.py index 0aad8e420..3f248ac56 100644 --- a/test/ci/test_tiktok.py +++ b/test/ci/test_tiktok.py @@ -33,9 +33,9 @@ class TikTokTestYoutubeDl(unittest.TestCase): params = {} ydl = youtube_dl.YoutubeDL(params) info = ydl.extract_info(url, download=True) - self.assertTrue(os.path.exists("Imagine lebron freaking out over something you did! #foryou #ballislife #lebron #nba-6783617809113943301.mp.4")) - os.remove("Imagine lebron freaking out over something you did! #foryou #ballislife #lebron #nba-6783617809113943301.mp.4") - + file_name="Imagine lebron freaking out over something you did! #foryou #ballislife #lebron #nba-6783617809113943301.mp.4" + self.assertTrue(os.path.exists(file_name)) + os.remove(file_name) if __name__ == '__main__':