From: Harmon Date: Sat, 30 Oct 2021 14:53:09 +0000 (-0500) Subject: Move test media from examples folder to new assets folder X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9e18bab2edc32e9470a86c62f4417bfef808b360;p=tweepy.git Move test media from examples folder to new assets folder --- diff --git a/examples/animated.gif b/assets/animated.gif similarity index 100% rename from examples/animated.gif rename to assets/animated.gif diff --git a/examples/banner.png b/assets/banner.png similarity index 100% rename from examples/banner.png rename to assets/banner.png diff --git a/examples/video.mp4 b/assets/video.mp4 similarity index 100% rename from examples/video.mp4 rename to assets/video.mp4 diff --git a/tests/test_api.py b/tests/test_api.py index 50e226f..979f3ef 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -96,20 +96,20 @@ class TweepyAPITests(TweepyTestCase): @tape.use_cassette('testupdatestatuswithmedia.yaml', serializer='yaml') def testupdatestatuswithmedia(self): - update = self.api.update_status_with_media(tweet_text, 'examples/banner.png') + 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') def testmediauploadpng(self): - self.api.media_upload('examples/banner.png') + self.api.media_upload('assets/banner.png') @tape.use_cassette('testmediauploadgif.yaml', serializer='yaml') def testmediauploadgif(self): - self.api.media_upload('examples/animated.gif') + self.api.media_upload('assets/animated.gif') @tape.use_cassette('testmediauploadmp4.yaml', serializer='yaml') def testmediauploadmp4(self): - self.api.media_upload('examples/video.mp4') + self.api.media_upload('assets/video.mp4') @tape.use_cassette('testgetuser.yaml', serializer='yaml') def testgetuser(self): @@ -213,10 +213,11 @@ class TweepyAPITests(TweepyTestCase): def testupateprofileimage(self): self.api.update_profile_image('examples/profile.png') """ + # TODO: Use logo @tape.use_cassette('testupdateprofilebannerimage.yaml', serializer='yaml') def testupdateprofilebannerimage(self): - self.api.update_profile_banner('examples/banner.png') + self.api.update_profile_banner('assets/banner.png') @tape.use_cassette('testupdateprofile.json') def testupdateprofile(self):