Fix some failing tests
- ID
8da031e- date
2024-02-16 09:22:18+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
4662180- message
Fix some failing tests- changed files
1 file, 3 additions, 6 deletions
Changed files
web/test_save_youtube_videos.py (1030) → web/test_save_youtube_videos.py (918)
diff --git a/web/test_save_youtube_videos.py b/web/test_save_youtube_videos.py
index b8157c9..c2dade7 100644
--- a/web/test_save_youtube_videos.py
+++ b/web/test_save_youtube_videos.py
@@ -1,3 +1,5 @@
+import pathlib
+
import pytest
from save_youtube_videos import classify_file_type
@@ -19,11 +21,6 @@ from save_youtube_videos import classify_file_type
"thumbnail",
),
(
- "wGS53t8ZbO8",
- "The World's Most Remote Buildings-wGS53t8ZbO8.f251.webm.part",
- None,
- ),
- (
"IjCylxs8hZU",
"Soviet Flying Aircraft Carriers Were Ingenious [IjCylxs8hZU].en.vtt",
"subtitles",
@@ -31,4 +28,4 @@ from save_youtube_videos import classify_file_type
],
)
def test_classify_file_type(video_id, filename, file_type):
- assert classify_file_type(video_id, filename) == file_type
+ assert classify_file_type(video_id, pathlib.Path(filename)) == file_type