mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 13:18:28 +03:00
Fix unit tests for latest yt-dlp
(Yt-dlp title is now truncated)
This commit is contained in:
@@ -25,5 +25,5 @@ class TestExtractorBase(object):
|
|||||||
else:
|
else:
|
||||||
assert status == test_response.status
|
assert status == test_response.status
|
||||||
|
|
||||||
assert title == test_response.get_title()
|
assert title in test_response.get_title()
|
||||||
assert timestamp, test_response.get("timestamp")
|
assert timestamp == test_response.get("timestamp")
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ class TestGenericExtractor(TestExtractorBase):
|
|||||||
post = self.extractor.download(make_item(url))
|
post = self.extractor.download(make_item(url))
|
||||||
self.assertValidResponseMetadata(
|
self.assertValidResponseMetadata(
|
||||||
post,
|
post,
|
||||||
"Bellingcat - This month's Bellingchat Premium is with @KolinaKoltai. She reveals how she investigated a platform allowing users to create AI-generated child sexual abuse material and explains why it's crucial to investigate the people behind these services",
|
"Bellingcat - This month's Bellingchat Premium is with @KolinaKoltai",
|
||||||
datetime.datetime(2024, 12, 24, 13, 44, 46, tzinfo=datetime.timezone.utc),
|
datetime.datetime(2024, 12, 24, 13, 44, 46, tzinfo=datetime.timezone.utc),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user