Support for getting RT information (#279)

This commit is contained in:
Dylan
2025-04-29 00:06:54 +01:00
parent e64aa41ff6
commit 1d03bf80e7
5 changed files with 27 additions and 1 deletions

View File

@@ -59,4 +59,11 @@ def test_api_user_feed():
jData = resp.get_json()
assert resp.status_code==200
assert jData["screen_name"]=="jack"
assert len(jData["latest_tweets"])>0
assert len(jData["latest_tweets"])>0
def test_api_retweet():
resp = client.get(testRetweetTweet.replace("https://twitter.com","https://api.vxtwitter.com"),headers={"User-Agent":"test"})
jData = resp.get_json()
assert jData['retweetURL'] == 'https://twitter.com/i/status/1828569456231993456'
assert jData['retweet'] != None
assert jData['retweet']['text'].startswith("If you want to try")