From c25880ee6d510687302a83d05316113228966f37 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Tue, 21 Jun 2022 01:21:53 +0200 Subject: [PATCH] fix tests --- tests/scraper_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/scraper_test.py b/tests/scraper_test.py index 395b759..1d1a6cd 100644 --- a/tests/scraper_test.py +++ b/tests/scraper_test.py @@ -135,4 +135,8 @@ def test_scrape_video_only2(): with tempfile.TemporaryDirectory(dir="./") as tempdir: vks.download_media(res, tempdir) found_files = set(os.listdir(tempdir)) - assert "video-17546758_456239898_0.webm" in found_files + # different systems might attribute different extension + assert ( + "video-17546758_456239898_0.webm" in found_files + or "video-17546758_456239898_0.mp4" in found_files + )