Update test for API.get_oembed
authorHarmon <Harmon758@gmail.com>
Fri, 18 Dec 2020 13:26:42 +0000 (07:26 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 18 Dec 2020 13:26:42 +0000 (07:26 -0600)
tests/test_api.py

index 72a4c0e10c48f182fa1500a9798d003862112ae6..d931b53bf21cfaa9017b128090d7381440d4be14 100644 (file)
@@ -46,7 +46,7 @@ class TweepyAPITests(TweepyTestCase):
     # TODO: Actually have some sort of better assertion
     @tape.use_cassette('testgetoembed.json')
     def testgetoembed(self):
-        data = self.api.get_oembed(test_tweet_id)
+        data = self.api.get_oembed("https://twitter.com/Twitter/status/" + test_tweet_id)
         self.assertEqual(data['author_name'], "Twitter")
 
     @tape.use_cassette('testparserargumenthastobeaparserinstance.json')