Fix small bug in twitter dropin

- previously the 'content' was being set to a json dump of the tweet, it should be set to full_text
This commit is contained in:
Patrick Robertson
2025-03-20 18:55:22 +04:00
parent 034857075d
commit 0a5ba3385e
2 changed files with 10 additions and 5 deletions

View File

@@ -206,10 +206,11 @@ class TestGenericExtractor(TestExtractorBase):
self.assertValidResponseMetadata(
post,
"Onion rings are just vegetable donuts.",
"Cookie Monster - Onion rings are just vegetable donuts.",
datetime.datetime(2023, 1, 24, 16, 25, 51, tzinfo=datetime.timezone.utc),
"yt-dlp_Twitter: success",
)
assert post.get("content") == "Onion rings are just vegetable donuts."
@pytest.mark.download
def test_twitter_download_video(self, make_item):