self.assertEqual(update.text, tweet_text)
# test destroy
- deleted = self.api.destroy_status(status_id=update.id)
+ deleted = self.api.destroy_status(id=update.id)
self.assertEqual(deleted.id, update.id)
@tape.use_cassette('testupdateanddestroystatus.json')
self.assertEqual(update.text, tweet_text)
# test destroy
- deleted = self.api.destroy_status(status_id=update.id)
+ deleted = self.api.destroy_status(id=update.id)
self.assertEqual(deleted.id, update.id)
@tape.use_cassette('testupdatestatuswithmedia.yaml', serializer='yaml')
)
@payload('status')
- def destroy_status(self, status_id, *args, **kwargs):
+ def destroy_status(self, id, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-destroy-id
"""
return self.request(
- 'POST', f'statuses/destroy/{status_id}', *args, **kwargs
+ 'POST', f'statuses/destroy/{id}', *args, **kwargs
)
@payload('status')