Move test media from examples folder to new assets folder
authorHarmon <Harmon758@gmail.com>
Sat, 30 Oct 2021 14:53:09 +0000 (09:53 -0500)
committerHarmon <Harmon758@gmail.com>
Sat, 30 Oct 2021 14:53:09 +0000 (09:53 -0500)
assets/animated.gif [moved from examples/animated.gif with 100% similarity]
assets/banner.png [moved from examples/banner.png with 100% similarity]
assets/video.mp4 [moved from examples/video.mp4 with 100% similarity]
tests/test_api.py

similarity index 100%
rename from examples/animated.gif
rename to assets/animated.gif
similarity index 100%
rename from examples/banner.png
rename to assets/banner.png
similarity index 100%
rename from examples/video.mp4
rename to assets/video.mp4
index 50e226f77cfc3f8ad147d9f59e22daa20a5fe178..979f3ef047cd673328f3c89cb3082c969fc37376 100644 (file)
@@ -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):