# self.assertEqual(cm.exception.api_code, 215)
# TODO: Actually have some sort of better assertion
- @tape.use_cassette('testgetoembed.json')
+ @tape.use_cassette('testgetoembed.json', serializer='json')
def testgetoembed(self):
data = self.api.get_oembed("https://twitter.com/Twitter/status/" + test_tweet_id)
self.assertEqual(data['author_name'], "Twitter")
- @tape.use_cassette('testparserargumenthastobeaparserinstance.json')
+ @tape.use_cassette('testparserargumenthastobeaparserinstance.json',
+ serializer='json')
def testparserargumenthastobeaparserinstance(self):
""" Testing the issue https://github.com/tweepy/tweepy/issues/421"""
self.assertRaises(TypeError, API, self.auth, parser=Parser)
- @tape.use_cassette('testhometimeline.json')
+ @tape.use_cassette('testhometimeline.json', serializer='json')
def testhometimeline(self):
self.api.home_timeline()
- @tape.use_cassette('testusertimeline.json')
+ @tape.use_cassette('testusertimeline.json', serializer='json')
def testusertimeline(self):
self.api.user_timeline()
self.api.user_timeline(screen_name='Twitter')
- @tape.use_cassette('testmentionstimeline.json')
+ @tape.use_cassette('testmentionstimeline.json', serializer='json')
def testmentionstimeline(self):
self.api.mentions_timeline()
- @tape.use_cassette('testgetretweetsofme.json')
+ @tape.use_cassette('testgetretweetsofme.json', serializer='json')
def testgetretweetsofme(self):
self.api.get_retweets_of_me()
- @tape.use_cassette('testretweetandunretweet.json')
+ @tape.use_cassette('testretweetandunretweet.json', serializer='json')
def testretweetandunretweet(self):
self.api.retweet(test_tweet_id)
self.api.unretweet(test_tweet_id)
- @tape.use_cassette('testgetretweets.json')
+ @tape.use_cassette('testgetretweets.json', serializer='json')
def testgetretweets(self):
self.api.get_retweets(test_tweet_id)
- @tape.use_cassette('testgetretweeterids.json')
+ @tape.use_cassette('testgetretweeterids.json', serializer='json')
def testgetretweeterids(self):
self.api.get_retweeter_ids(test_tweet_id)
- @tape.use_cassette('testgetstatus.json')
+ @tape.use_cassette('testgetstatus.json', serializer='json')
def testgetstatus(self):
self.api.get_status(id=test_tweet_id)
- @tape.use_cassette('testupdateanddestroystatus.json')
+ @tape.use_cassette('testupdateanddestroystatus.json', serializer='json')
def testupdateanddestroystatus(self):
# test update
update = self.api.update_status(status=tweet_text)
deleted = self.api.destroy_status(id=update.id)
self.assertEqual(deleted.id, update.id)
- @tape.use_cassette('testupdateanddestroystatus.json')
+ @tape.use_cassette('testupdateanddestroystatus.json', serializer='json')
def testupdateanddestroystatuswithoutkwarg(self):
# test update, passing text as a positional argument (#554)
update = self.api.update_status(tweet_text)
deleted = self.api.destroy_status(id=update.id)
self.assertEqual(deleted.id, update.id)
- @tape.use_cassette('testupdatestatuswithmedia.yaml', serializer='yaml')
+ @tape.use_cassette('testupdatestatuswithmedia.yaml')
def testupdatestatuswithmedia(self):
update = self.api.update_status_with_media(tweet_text, 'assets/banner.png')
self.assertIn(tweet_text + ' https://t.co', update.text)
- @tape.use_cassette('testmediauploadpng.yaml', serializer='yaml')
+ @tape.use_cassette('testmediauploadpng.yaml')
def testmediauploadpng(self):
self.api.media_upload('assets/banner.png')
- @tape.use_cassette('testmediauploadgif.yaml', serializer='yaml')
+ @tape.use_cassette('testmediauploadgif.yaml')
def testmediauploadgif(self):
self.api.media_upload('assets/animated.gif')
- @tape.use_cassette('testmediauploadmp4.yaml', serializer='yaml')
+ @tape.use_cassette('testmediauploadmp4.yaml')
def testmediauploadmp4(self):
self.api.media_upload('assets/video.mp4')
- @tape.use_cassette('testgetuser.yaml', serializer='yaml')
+ @tape.use_cassette('testgetuser.yaml')
def testgetuser(self):
u = self.api.get_user(screen_name='Twitter')
self.assertEqual(u.screen_name, 'Twitter')
u = self.api.get_user(user_id=783214)
self.assertEqual(u.screen_name, 'Twitter')
- @tape.use_cassette('testlookupusers.json')
+ @tape.use_cassette('testlookupusers.json', serializer='json')
def testlookupusers(self):
def check(users):
self.assertEqual(len(users), 2)
check(self.api.lookup_users(user_id=[6844292, 6253282]))
check(self.api.lookup_users(screen_name=['twitterapi', 'twitter']))
- @tape.use_cassette('testsearchusers.json')
+ @tape.use_cassette('testsearchusers.json', serializer='json')
def testsearchusers(self):
self.api.search_users('twitter')
- @tape.use_cassette('testgetdirectmessages.json')
+ @tape.use_cassette('testgetdirectmessages.json', serializer='json')
def testgetdirectmessages(self):
self.api.get_direct_messages()
- @tape.use_cassette('testsendanddeletedirectmessage.json')
+ @tape.use_cassette('testsendanddeletedirectmessage.json',
+ serializer='json')
def testsendanddeletedirectmessage(self):
me = self.api.verify_credentials()
# destroy
self.api.delete_direct_message(sent_dm.id)
- @tape.use_cassette('testindicatedirectmessagetyping.yaml',
- serializer='yaml')
+ @tape.use_cassette('testindicatedirectmessagetyping.yaml')
def testindicatedirectmessagetyping(self):
me = self.api.verify_credentials()
# TODO: Test API.mark_direct_message_read
- @tape.use_cassette('testcreatedestroyfriendship.yaml', serializer='yaml')
+ @tape.use_cassette('testcreatedestroyfriendship.yaml')
def testcreatedestroyfriendship(self):
enemy = self.api.destroy_friendship(screen_name='Twitter')
self.assertEqual(enemy.screen_name, 'Twitter')
friend = self.api.create_friendship(screen_name='Twitter')
self.assertEqual(friend.screen_name, 'Twitter')
- @tape.use_cassette('testgetfriendship.json')
+ @tape.use_cassette('testgetfriendship.json', serializer='json')
def testgetfriendship(self):
source, target = self.api.get_friendship(target_screen_name='twitter')
self.assertTrue(isinstance(source, Friendship))
self.assertTrue(isinstance(target, Friendship))
- @tape.use_cassette('testgetfriendids.yaml', serializer='yaml')
+ @tape.use_cassette('testgetfriendids.yaml')
def testgetfriendids(self):
self.api.get_friend_ids(screen_name=username)
- @tape.use_cassette('testgetfollowerids.yaml', serializer='yaml')
+ @tape.use_cassette('testgetfollowerids.yaml')
def testgetfollowerids(self):
self.api.get_follower_ids(screen_name=username)
- @tape.use_cassette('testgetfriends.yaml', serializer='yaml')
+ @tape.use_cassette('testgetfriends.yaml')
def testgetfriends(self):
self.api.get_friends(screen_name=username)
- @tape.use_cassette('testgetfollowers.yaml', serializer='yaml')
+ @tape.use_cassette('testgetfollowers.yaml')
def testgetfollowers(self):
self.api.get_followers(screen_name=username)
- @tape.use_cassette('testverifycredentials.json')
+ @tape.use_cassette('testverifycredentials.json', serializer='json')
def testverifycredentials(self):
self.api.verify_credentials()
me = self.api.verify_credentials(skip_status=True)
self.assertFalse(hasattr(me, 'status'))
- @tape.use_cassette('testratelimitstatus.json')
+ @tape.use_cassette('testratelimitstatus.json', serializer='json')
def testratelimitstatus(self):
self.api.rate_limit_status()
- @tape.use_cassette('testupdateprofilecolors.json')
+ @tape.use_cassette('testupdateprofilecolors.json', serializer='json')
def testupdateprofilecolors(self):
original = self.api.verify_credentials()
updated = self.api.update_profile(profile_link_color='D0F900')
"""
# TODO: Use logo
- @tape.use_cassette('testupdateprofilebannerimage.yaml', serializer='yaml')
+ @tape.use_cassette('testupdateprofilebannerimage.yaml')
def testupdateprofilebannerimage(self):
self.api.update_profile_banner('assets/banner.png')
- @tape.use_cassette('testupdateprofile.json')
+ @tape.use_cassette('testupdateprofile.json', serializer='json')
def testupdateprofile(self):
original = self.api.verify_credentials()
profile = {
if k == 'email': continue
self.assertEqual(getattr(updated, k), v)
- @tape.use_cassette('testgetfavorites.json')
+ @tape.use_cassette('testgetfavorites.json', serializer='json')
def testgetfavorites(self):
self.api.get_favorites()
- @tape.use_cassette('testcreatedestroyfavorite.json')
+ @tape.use_cassette('testcreatedestroyfavorite.json', serializer='json')
def testcreatedestroyfavorite(self):
self.api.create_favorite(145344012)
self.api.destroy_favorite(145344012)
- @tape.use_cassette('testcreatedestroyblock.yaml', serializer='yaml')
+ @tape.use_cassette('testcreatedestroyblock.yaml')
def testcreatedestroyblock(self):
self.api.create_block(screen_name='twitter')
self.api.destroy_block(screen_name='twitter')
self.api.create_friendship(screen_name='twitter') # restore
- @tape.use_cassette('testgetblocks.json')
+ @tape.use_cassette('testgetblocks.json', serializer='json')
def testgetblocks(self):
self.api.get_blocks()
- @tape.use_cassette('testgetblockedids.json')
+ @tape.use_cassette('testgetblockedids.json', serializer='json')
def testgetblockedids(self):
self.api.get_blocked_ids()
- @tape.use_cassette('testcreateupdatedestroylist.yaml', serializer='yaml')
+ @tape.use_cassette('testcreateupdatedestroylist.yaml')
def testcreateupdatedestroylist(self):
l = self.api.create_list(name="tweeps")
l = self.api.update_list(list_id=l.id, description='updated!')
self.assertEqual(l.description, 'updated!')
self.api.destroy_list(list_id=l.id)
- @tape.use_cassette('testgetlists.json')
+ @tape.use_cassette('testgetlists.json', serializer='json')
def testgetlists(self):
self.api.get_lists()
- @tape.use_cassette('testgetlistmemberships.json')
+ @tape.use_cassette('testgetlistmemberships.json', serializer='json')
def testgetlistmemberships(self):
self.api.get_list_memberships()
- @tape.use_cassette('testgetlistownerships.json')
+ @tape.use_cassette('testgetlistownerships.json', serializer='json')
def testgetlistownerships(self):
self.api.get_list_ownerships()
- @tape.use_cassette('testgetlistsubscriptions.json')
+ @tape.use_cassette('testgetlistsubscriptions.json', serializer='json')
def testgetlistsubscriptions(self):
self.api.get_list_subscriptions()
- @tape.use_cassette('testlisttimeline.json')
+ @tape.use_cassette('testlisttimeline.json', serializer='json')
def testlisttimeline(self):
self.api.list_timeline(owner_screen_name='Twitter', slug='Official-Twitter-Accounts')
- @tape.use_cassette('testgetlist.json')
+ @tape.use_cassette('testgetlist.json', serializer='json')
def testgetlist(self):
self.api.get_list(owner_screen_name='Twitter', slug='Official-Twitter-Accounts')
- @tape.use_cassette('testaddremovelistmember.json')
+ @tape.use_cassette('testaddremovelistmember.json', serializer='json')
def testaddremovelistmember(self):
params = {
'slug': 'test',
assert_list(self.api.add_list_member(**params))
assert_list(self.api.remove_list_member(**params))
- @tape.use_cassette('testaddremovelistmembers.json')
+ @tape.use_cassette('testaddremovelistmembers.json', serializer='json')
def testaddremovelistmembers(self):
params = {
'slug': 'test',
assert_list(self.api.add_list_members(**params))
assert_list(self.api.remove_list_members(**params))
- @tape.use_cassette('testgetlistmembers.json')
+ @tape.use_cassette('testgetlistmembers.json', serializer='json')
def testgetlistmembers(self):
self.api.get_list_members(owner_screen_name='Twitter', slug='Official-Twitter-Accounts')
- @tape.use_cassette('testgetlistmember.json')
+ @tape.use_cassette('testgetlistmember.json', serializer='json')
def testgetlistmember(self):
self.assertTrue(self.api.get_list_member(owner_screen_name='Twitter', slug='Official-Twitter-Accounts', screen_name='TwitterAPI'))
- @tape.use_cassette('testsubscribeunsubscribelist.json')
+ @tape.use_cassette('testsubscribeunsubscribelist.json', serializer='json')
def testsubscribeunsubscribelist(self):
params = {
'owner_screen_name': 'Twitter',
self.api.subscribe_list(**params)
self.api.unsubscribe_list(**params)
- @tape.use_cassette('testgetlistsubscribers.json')
+ @tape.use_cassette('testgetlistsubscribers.json', serializer='json')
def testgetlistsubscribers(self):
self.api.get_list_subscribers(owner_screen_name='Twitter', slug='Official-Twitter-Accounts')
- @tape.use_cassette('testgetlistsubscriber.json')
+ @tape.use_cassette('testgetlistsubscriber.json', serializer='json')
def testgetlistsubscriber(self):
self.assertTrue(self.api.get_list_subscriber(owner_screen_name='Twitter', slug='Official-Twitter-Accounts', screen_name='TwitterMktg'))
- @tape.use_cassette('testsavedsearches.json')
+ @tape.use_cassette('testsavedsearches.json', serializer='json')
def testsavedsearches(self):
s = self.api.create_saved_search('test')
self.api.get_saved_searches()
self.assertEqual(self.api.get_saved_search(s.id).query, 'test')
self.api.destroy_saved_search(s.id)
- @tape.use_cassette('testsearchtweets.json')
+ @tape.use_cassette('testsearchtweets.json', serializer='json')
def testsearchtweets(self):
self.api.search_tweets('tweepy')
- @tape.use_cassette('testgeoapis.json')
+ @tape.use_cassette('testgeoapis.json', serializer='json')
def testgeoapis(self):
def place_name_in_list(place_name, place_list):
"""Return True if a given place_name is in place_list."""
self.assertTrue(place_name_in_list('Austin, TX',
self.api.reverse_geocode(lat=30.2673701685, long= -97.7426147461))) # Austin, TX, USA
- @tape.use_cassette('testsupportedlanguages.json')
+ @tape.use_cassette('testsupportedlanguages.json', serializer='json')
def testsupportedlanguages(self):
languages = self.api.supported_languages()
expected_dict = {
}
self.assertTrue(expected_dict in languages)
- @tape.use_cassette('testcachedresult.yaml', serializer='yaml')
+ @tape.use_cassette('testcachedresult.yaml')
def testcachedresult(self):
self.api.cache = MemoryCache()
self.api.home_timeline()
self.api.home_timeline()
self.assertTrue(self.api.cached_result)
- @tape.use_cassette('testcachedresult.yaml', serializer='yaml')
+ @tape.use_cassette('testcachedresult.yaml')
def testcachedifferentqueryparameters(self):
self.api.cache = MemoryCache()
access_token or user_id, access_token_secret
)
- @tape.use_cassette("test_bookmarks.yaml", serializer="yaml")
+ @tape.use_cassette("test_bookmarks.yaml")
def test_bookmarks(self):
tweet_id = 1507070437557096461
# @TwitterDev Tweet announcing API v2 Bookmarks endpoints
self.client.get_bookmarks()
self.client.remove_bookmark(tweet_id)
- @tape.use_cassette("test_hide_and_unhide_reply.yaml", serializer="yaml")
+ @tape.use_cassette("test_hide_and_unhide_reply.yaml")
def test_hide_and_unhide_reply(self):
reply_id = 1344794616005066752 # Test Tweet for reply hide/unhide
self.client.hide_reply(reply_id)
self.client.unhide_reply(reply_id)
- @tape.use_cassette("test_like_and_unlike.yaml", serializer="yaml")
+ @tape.use_cassette("test_like_and_unlike.yaml")
def test_like_and_unlike(self):
tweet_id = 1293593516040269825 # @TwitterDev Tweet announcing API v2
self.client.like(tweet_id)
self.client.unlike(tweet_id)
- @tape.use_cassette("test_get_liking_users.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_liking_users.yaml")
def test_get_liking_users(self):
tweet_id = 1293593516040269825 # @TwitterDev Tweet announcing API v2
self.client.get_liking_users(tweet_id)
- @tape.use_cassette("test_get_liked_tweets.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_liked_tweets.yaml")
def test_get_liked_tweets(self):
user_id = 783214 # User ID for @Twitter
self.client.get_liked_tweets(user_id)
- @tape.use_cassette("test_create_and_delete_tweet.yaml", serializer="yaml")
+ @tape.use_cassette("test_create_and_delete_tweet.yaml")
def test_create_and_delete_tweet(self):
response = self.client.create_tweet(text="Test Tweet")
tweet_id = response.data["id"]
self.client.delete_tweet(tweet_id)
- @tape.use_cassette("test_get_quote_tweets.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_quote_tweets.yaml")
def test_get_quote_tweets(self):
tweet_id = 1293593516040269825 # @TwitterDev Tweet announcing API v2
self.client.get_quote_tweets(tweet_id)
- @tape.use_cassette("test_retweet_and_unretweet.yaml", serializer="yaml")
+ @tape.use_cassette("test_retweet_and_unretweet.yaml")
def test_retweet_and_unretweet(self):
tweet_id = 1415348607813832708
# @TwitterDev Tweet announcing API v2 Retweet endpoints
self.client.retweet(tweet_id)
self.client.unretweet(tweet_id)
- @tape.use_cassette("test_get_retweeters.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_retweeters.yaml")
def test_get_retweeters(self):
tweet_id = 1415348607813832708
# @TwitterDev Tweet announcing API v2 Retweet endpoints
self.client.get_retweeters(tweet_id)
- @tape.use_cassette("test_search_all_tweets.yaml", serializer="yaml")
+ @tape.use_cassette("test_search_all_tweets.yaml")
def test_search_all_tweets(self):
self.client.search_all_tweets("Tweepy")
- @tape.use_cassette("test_search_recent_tweets.yaml", serializer="yaml")
+ @tape.use_cassette("test_search_recent_tweets.yaml")
def test_search_recent_tweets(self):
self.client.search_recent_tweets("Tweepy")
- @tape.use_cassette("test_get_users_mentions.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_users_mentions.yaml")
def test_get_users_mentions(self):
user_id = 783214 # User ID for @Twitter
self.client.get_users_mentions(user_id)
- @tape.use_cassette("test_get_users_tweets.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_users_tweets.yaml")
def test_get_users_tweets(self):
user_id = 783214 # User ID for @Twitter
self.client.get_users_tweets(user_id)
- @tape.use_cassette("test_get_all_tweets_count.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_all_tweets_count.yaml")
def test_get_all_tweets_count(self):
self.client.get_all_tweets_count("Tweepy")
- @tape.use_cassette("test_get_recent_tweets_count.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_recent_tweets_count.yaml")
def test_get_recent_tweets_count(self):
self.client.get_recent_tweets_count("Tweepy")
- @tape.use_cassette("test_get_tweet.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_tweet.yaml")
def test_get_tweet(self):
tweet_id = 1293593516040269825 # @TwitterDev Tweet announcing API v2
self.client.get_tweet(tweet_id)
- @tape.use_cassette("test_get_tweets.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_tweets.yaml")
def test_get_tweets(self):
tweet_ids = [1293593516040269825, 1293595870563381249]
# @TwitterDev and @TwitterAPI Tweets announcing API v2
self.client.get_tweets(tweet_ids)
- @tape.use_cassette("test_block_and_get_blocked_and unblock.yaml",
- serializer="yaml")
+ @tape.use_cassette("test_block_and_get_blocked_and unblock.yaml")
def test_block_and_unblock(self):
user_id = 17874544 # User ID for @TwitterSupport
self.client.block(user_id)
self.client.get_blocked()
self.client.unblock(user_id)
- @tape.use_cassette("test_follow_and_unfollow_user.yaml", serializer="yaml")
+ @tape.use_cassette("test_follow_and_unfollow_user.yaml")
def test_follow_and_unfollow_user(self):
user_id = 17874544 # User ID for @TwitterSupport
self.client.follow_user(user_id)
self.client.unfollow_user(user_id)
- @tape.use_cassette("test_get_users_followers.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_users_followers.yaml")
def test_get_users_followers(self):
user_id = 783214 # User ID for @Twitter
self.client.get_users_followers(user_id)
- @tape.use_cassette("test_get_users_following.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_users_following.yaml")
def test_get_users_following(self):
user_id = 783214 # User ID for @Twitter
self.client.get_users_following(user_id)
- @tape.use_cassette("test_mute_get_muted_and_unmute.yaml",
- serializer="yaml")
+ @tape.use_cassette("test_mute_get_muted_and_unmute.yaml")
def test_mute_get_muted_and_unmute(self):
user_id = 17874544 # User ID for @TwitterSupport
self.client.mute(user_id)
self.client.get_muted()
self.client.unmute(user_id)
- @tape.use_cassette("test_get_user.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_user.yaml")
def test_get_user(self):
self.client.get_user(username="Twitter")
- @tape.use_cassette("test_get_users.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_users.yaml")
def test_get_users(self):
self.client.get_users(usernames=["Twitter", "TwitterDev"])
- @tape.use_cassette("test_get_me.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_me.yaml")
def test_get_me(self):
self.client.get_me()
- @tape.use_cassette("test_search_spaces.yaml", serializer="yaml")
+ @tape.use_cassette("test_search_spaces.yaml")
def test_search_spaces(self):
self.client.search_spaces("Twitter")
- @tape.use_cassette("test_get_spaces.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_spaces.yaml")
def test_get_spaces(self):
space_ids = ["1YpKkzBgBlVxj", "1OwGWzarWnNKQ"]
# Space ID for @TwitterSpaces Twitter Spaces community gathering + Q&A
self.client.get_spaces(ids=space_ids)
self.client.get_spaces(user_ids=user_ids)
- @tape.use_cassette("test_get_space.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_space.yaml")
def test_get_space(self):
space_id = "1YpKkzBgBlVxj"
# Space ID for @TwitterSpaces Twitter Spaces community gathering + Q&A
# TODO: Test Client.get_space_tweets
- @tape.use_cassette("test_get_list_tweets.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_list_tweets.yaml")
def test_get_list_tweets(self):
list_id = 84839422 # List ID for Official Twitter Accounts (@Twitter)
self.client.get_list_tweets(list_id)
- @tape.use_cassette("test_follow_and_unfollow_list.yaml", serializer="yaml")
+ @tape.use_cassette("test_follow_and_unfollow_list.yaml")
def test_follow_and_unfollow_list(self):
list_id = 84839422 # List ID for Official Twitter Accounts (@Twitter)
self.client.follow_list(list_id)
self.client.unfollow_list(list_id)
- @tape.use_cassette("test_get_list_followers.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_list_followers.yaml")
def test_get_list_followers(self):
list_id = 84839422 # List ID for Official Twitter Accounts (@Twitter)
self.client.get_list_followers(list_id)
- @tape.use_cassette("test_get_followed_lists.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_followed_lists.yaml")
def test_get_followed_lists(self):
user_id = 372575989 # User ID for @TwitterNews
self.client.get_followed_lists(user_id)
- @tape.use_cassette("test_get_list.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_list.yaml")
def test_get_list(self):
list_id = 84839422 # List ID for Official Twitter Accounts (@Twitter)
self.client.get_list(list_id)
- @tape.use_cassette("test_get_owned_lists.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_owned_lists.yaml")
def test_get_owned_lists(self):
user_id = 783214 # User ID for @Twitter
self.client.get_owned_lists(user_id)
- @tape.use_cassette("test_get_list_members.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_list_members.yaml")
def test_get_list_members(self):
list_id = 84839422 # List ID for Official Twitter Accounts (@Twitter)
self.client.get_list_members(list_id)
- @tape.use_cassette("test_get_list_memberships.yaml", serializer="yaml")
+ @tape.use_cassette("test_get_list_memberships.yaml")
def test_get_list_memberships(self):
user_id = 783214 # User ID for @Twitter
self.client.get_list_memberships(user_id)
- @tape.use_cassette("test_manage_and_get_pinned_lists.yaml",
- serializer="yaml")
+ @tape.use_cassette("test_manage_and_get_pinned_lists.yaml")
def test_manage_and_get_pinned_lists(self):
response = self.client.create_list("Test List", private=True)
list_id = response.data["id"]
self.client.update_list(list_id, description="Test List Description")
self.client.delete_list(list_id)
- @tape.use_cassette("test_create_and_get_compliance_job_and_jobs.yaml",
- serializer="yaml")
+ @tape.use_cassette("test_create_and_get_compliance_job_and_jobs.yaml")
def test_create_and_get_compliance_job_and_jobs(self):
response = self.client.create_compliance_job("tweets")
job_id = response.data["id"]