From 1db140d8017f0b33ceb9a272c189b5ee2ab3670e Mon Sep 17 00:00:00 2001 From: Miriam Sexton Date: Wed, 13 Feb 2013 10:22:53 -0500 Subject: [PATCH] Fixes for last commit --- tests.py | 4 +--- tweepy/api.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests.py b/tests.py index fcacc60..8ce7ce0 100644 --- a/tests.py +++ b/tests.py @@ -45,9 +45,7 @@ class TweepyAPITests(unittest.TestCase): # TODO: Actually have some sort of better assertion def testgetoembed(self): print "testgetoembed" - json_str = self.api.get_oembed(test_tweet_id) - data = json.loads(json_str) - + data = self.api.get_oembed(test_tweet_id) self.assertEqual(data['author_name'], "Twitter") diff --git a/tweepy/api.py b/tweepy/api.py index aee0d10..273e059 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -138,7 +138,7 @@ class API(object): ''' statuses/oembed ''' get_oembed = bind_api( - path = '1.1/statuses/oembed.json', + path = '/statuses/oembed.json', payload_type = 'json', allowed_param = ['id', 'url', 'maxwidth', 'hide_media', 'omit_script', 'align', 'related', 'lang'] ) -- 2.25.1