|
19 | 19 | twitter_plugin = TwitterPlugin(options) |
20 | 20 |
|
21 | 21 | # Test case 1: Post a Tweet |
22 | | -print("Running Test Case 1: Post a Tweet") |
| 22 | +print("\nRunning Test Case 1: Post a Tweet") |
23 | 23 | post_tweet_fn = twitter_plugin.get_function('post_tweet') |
24 | 24 | post_tweet_fn("Hello world! This is a test tweet from the Twitter Plugin!") |
25 | 25 | print("Posted tweet!") |
26 | 26 |
|
27 | 27 | # Test case 2: Reply to a Tweet |
28 | | -print("Running Test Case 2: Reply to a Tweet") |
| 28 | +print("\nRunning Test Case 2: Reply to a Tweet") |
29 | 29 | reply_tweet_fn = twitter_plugin.get_function('reply_tweet') |
30 | 30 | reply_tweet_fn(tweet_id=1879472470362816626, reply="Hey! This is a test reply!") |
31 | 31 | print("Replied to tweet!") |
32 | 32 |
|
33 | 33 | # Test case 3: Like a Tweet |
34 | | -print("Running Test Case 3: Like a Tweet") |
| 34 | +print("\nRunning Test Case 3: Like a Tweet") |
35 | 35 | like_tweet_fn = twitter_plugin.get_function('like_tweet') |
36 | 36 | like_tweet_fn(tweet_id=1879472470362816626) |
37 | 37 | print("Liked tweet!") |
38 | 38 |
|
39 | 39 | # Test case 4: Quote a Tweet |
40 | | -print("Running Test Case 4: Quote a Tweet") |
| 40 | +print("\nRunning Test Case 4: Quote a Tweet") |
41 | 41 | quote_tweet_fn = twitter_plugin.get_function('quote_tweet') |
42 | 42 | quote_tweet_fn(tweet_id=1879472470362816626, quote="Hey! This is a test quote tweet!") |
43 | 43 | print("Quoted tweet!") |
44 | 44 |
|
45 | 45 | # Test case 5: Get Metrics |
46 | | -print("Running Test Case 5: Get Metrics") |
| 46 | +print("\nRunning Test Case 5: Get Metrics") |
47 | 47 | get_metrics_fn = twitter_plugin.get_function('get_metrics') |
48 | 48 | metrics = get_metrics_fn() |
49 | 49 | print("Metrics:", metrics) |
50 | 50 |
|
51 | 51 | # Test case 6: Get User From Handle |
52 | | -print("Running Test Case 6: Get User From Handle") |
| 52 | +print("\nRunning Test Case 6: Get User From Handle") |
53 | 53 | get_user_fn = twitter_plugin.get_function('get_user_from_handle') |
54 | 54 | user_id = get_user_fn('celesteanglm') |
55 | 55 | print("user_id:", user_id) |
56 | 56 |
|
57 | 57 | # Test case 7: Get User Mentions |
58 | | -print("Running Test Case 7: Get User Mentions") |
| 58 | +print("\nRunning Test Case 7: Get User Mentions") |
59 | 59 | get_user_fn = twitter_plugin.get_function("get_user_from_handle") |
60 | 60 | user_id = get_user_fn("GAME_Virtuals") |
61 | 61 | get_user_mentions_fn = twitter_plugin.get_function("get_user_mentions") |
|
0 commit comments