Fix unit tests for latest yt-dlp

(Yt-dlp title is now truncated)
This commit is contained in:
Patrick Robertson
2025-03-24 17:48:15 +04:00
parent beb7f3893d
commit a9fe959ea1
2 changed files with 3 additions and 3 deletions

View File

@@ -25,5 +25,5 @@ class TestExtractorBase(object):
else:
assert status == test_response.status
assert title == test_response.get_title()
assert timestamp, test_response.get("timestamp")
assert title in test_response.get_title()
assert timestamp == test_response.get("timestamp")

View File

@@ -218,7 +218,7 @@ class TestGenericExtractor(TestExtractorBase):
post = self.extractor.download(make_item(url))
self.assertValidResponseMetadata(
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),
)