@tape.use_cassette('testupdatestatuswithmedia.yaml', serializer='yaml')
def testupdatestatuswithmedia(self):
- update = self.api.update_with_media('examples/banner.png', status=tweet_text)
+ update = self.api.update_with_media(tweet_text, 'examples/banner.png')
self.assertIn(tweet_text + ' https://t.co', update.text)
@tape.use_cassette('testmediauploadpng.yaml', serializer='yaml')
)
@payload('status')
- def update_with_media(self, filename, status, *, file=None, **kwargs):
+ def update_with_media(self, status, filename, *, file=None, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update_with_media
"""
if file is not None: