From 3168bed0d9ab6d085c5075370a3541b70da8a02d Mon Sep 17 00:00:00 2001 From: Patrick Robertson Date: Wed, 15 Jan 2025 19:00:57 +0100 Subject: [PATCH] Add (skipped) test for twitter extraction with youtubedlp --- tests/archivers/test_youtubedl_archiver.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/archivers/test_youtubedl_archiver.py b/tests/archivers/test_youtubedl_archiver.py index 35c791d..bb5a8d2 100644 --- a/tests/archivers/test_youtubedl_archiver.py +++ b/tests/archivers/test_youtubedl_archiver.py @@ -60,4 +60,12 @@ class TestYoutubeDLArchiver(TestArchiverBase): @pytest.mark.download def test_download_bluesky_with_images(self, make_item): item = make_item("https://bsky.app/profile/colborne.bsky.social/post/3lec2bqjc5s2y") - result = self.archiver.download(item) \ No newline at end of file + result = self.archiver.download(item) + assert result is not False + + @pytest.mark.skip("ytdlp supports twitter, but there's currently no way to extract info from pages without videos") + @pytest.mark.download + def test_download_twitter_textonly(self, make_item): + item = make_item("https://x.com/bellingcat/status/1874097816571961839") + result = self.archiver.download(item) + assert result is not False \ No newline at end of file