Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
1db140d8
Commit
1db140d8
authored
Feb 13, 2013
by
Miriam Sexton
Browse files
Fixes for last commit
parent
c19bd0eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests.py
View file @
1db140d8
...
...
@@ -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"
)
...
...
tweepy/api.py
View file @
1db140d8
...
...
@@ -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'
]
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment