Use new anonymous API endpoint

This commit is contained in:
Dylan
2023-12-16 13:58:42 +00:00
parent a099046784
commit 081dfa7680
2 changed files with 5 additions and 1 deletions

View File

@ -52,6 +52,10 @@ def test_syndicationAPI():
tweet = twExtract.extractStatus_syndication(testMediaTweet,workaroundTokens=tokens)
assert tweet["full_text"]==testMediaTweet_compare['description']
def test_extractStatusV2Anon():
tweet = twExtract.extractStatusV2AnonLegacy(testMediaTweet,None)
assert tweet["full_text"]==testMediaTweet_compare['description']
def test_v2API():
tweet = twExtract.extractStatusV2Legacy(testMediaTweet,workaroundTokens=tokens)
assert tweet["full_text"]==testMediaTweet_compare['description']