Skip to content

Commit 2b96bdc

Browse files
committed
tweepy point to virtuals-tweepy
1 parent 80a4925 commit 2b96bdc

File tree

4 files changed

+128
-130
lines changed

4 files changed

+128
-130
lines changed

plugins/twitter/examples/test_twitter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Using GAME Twitter API credentials
1919
options = {
2020
"credentials": {
21-
"gameTwitterAccessToken": os.environ.get("GAME_TWITTER_ACCESS_TOKEN"),
21+
"gameTwitterAccessToken": "apx-xxx",
2222
},
2323
}
2424

@@ -28,7 +28,7 @@
2828
# Test case 1: Post a Tweet
2929
print("\nRunning Test Case 1: Post a Tweet")
3030
post_tweet_fn = twitter_plugin.twitter_client.create_tweet
31-
post_tweet_fn(text="Hello world! This is a test tweet from the Twitter Plugin!", media_ids=[])
31+
post_tweet_fn(text="Hello world! This is a test tweet from the Twitter Plugin!")
3232
print("Posted tweet!")
3333

3434
# Test case 2: Post a Tweet with Media
@@ -45,19 +45,19 @@
4545
# Test case 3: Reply to a Tweet
4646
print("\nRunning Test Case 3: Reply to a Tweet")
4747
reply_tweet_fn = twitter_plugin.twitter_client.create_tweet
48-
reply_tweet_fn(in_reply_to_tweet_id=1914249509963808976, text="Hey! This is a test reply!", media_ids=[])
48+
reply_tweet_fn(in_reply_to_tweet_id=1915274034100809968, text="Hey! This is a test reply!")
4949
print("Replied to tweet!")
5050

5151
# Test case 4: Like a Tweet
5252
print("\nRunning Test Case 4: Like a Tweet")
5353
like_tweet_fn = twitter_plugin.twitter_client.like
54-
like_tweet_fn(tweet_id=1914249509963808976)
54+
like_tweet_fn(tweet_id=1915274034100809968)
5555
print("Liked tweet!")
5656

5757
# Test case 5: Quote a Tweet
5858
print("\nRunning Test Case 5: Quote a Tweet")
5959
quote_tweet_fn = twitter_plugin.twitter_client.create_tweet
60-
quote_tweet_fn(tweet_id=1914249509963808976, quote="Hey! This is a test quote tweet!", media_ids=[])
60+
quote_tweet_fn(quote_tweet_id=1915274034100809968, text="Hey! This is a test quote tweet!")
6161
print("Quoted tweet!")
6262

6363
# Test case 6: Get Metrics

0 commit comments

Comments
 (0)