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
acfee89a
Commit
acfee89a
authored
Jan 29, 2013
by
Joshua Roesslein
Browse files
Fix more broken tests.
parent
4af1c72d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests.py
View file @
acfee89a
...
...
@@ -5,7 +5,7 @@ import os
from
nose
import
SkipTest
from
tweepy
import
(
API
,
BasicAuthHandler
,
OAuthHandler
,
Friendship
,
Cursor
,
from
tweepy
import
(
API
,
OAuthHandler
,
Friendship
,
Cursor
,
MemoryCache
,
FileCache
)
"""Configurations"""
...
...
@@ -177,11 +177,11 @@ class TweepyAPITests(unittest.TestCase):
original
.
profile_sidebar_border_color
)
self
.
assertEqual
(
updated
.
profile_background_color
,
'000'
)
self
.
assertEqual
(
updated
.
profile_text_color
,
'000'
)
self
.
assertEqual
(
updated
.
profile_link_color
,
'000'
)
self
.
assertEqual
(
updated
.
profile_sidebar_fill_color
,
'000'
)
self
.
assertEqual
(
updated
.
profile_sidebar_border_color
,
'000'
)
self
.
assertEqual
(
updated
.
profile_background_color
,
'000
000
'
)
self
.
assertEqual
(
updated
.
profile_text_color
,
'000
000
'
)
self
.
assertEqual
(
updated
.
profile_link_color
,
'000
000
'
)
self
.
assertEqual
(
updated
.
profile_sidebar_fill_color
,
'000
000
'
)
self
.
assertEqual
(
updated
.
profile_sidebar_border_color
,
'000
000
'
)
"""
def testupateprofileimage(self):
...
...
@@ -331,17 +331,17 @@ class TweepyCursorTests(unittest.TestCase):
self
.
assert_
(
len
(
pages
)
==
5
)
def
testcursorcursoritems
(
self
):
items
=
list
(
Cursor
(
self
.
api
.
friends
).
items
())
items
=
list
(
Cursor
(
self
.
api
.
friends
_ids
).
items
())
self
.
assert_
(
len
(
items
)
>
0
)
items
=
list
(
Cursor
(
self
.
api
.
followers
,
'twitter'
).
items
(
30
))
items
=
list
(
Cursor
(
self
.
api
.
followers
_ids
,
'twitter'
).
items
(
30
))
self
.
assert_
(
len
(
items
)
==
30
)
def
testcursorcursorpages
(
self
):
pages
=
list
(
Cursor
(
self
.
api
.
friends
).
pages
())
pages
=
list
(
Cursor
(
self
.
api
.
friends
_ids
).
pages
())
self
.
assert_
(
len
(
pages
)
>
0
)
pages
=
list
(
Cursor
(
self
.
api
.
followers
,
'twitter'
).
pages
(
5
))
pages
=
list
(
Cursor
(
self
.
api
.
followers
_ids
,
'twitter'
).
pages
(
5
))
self
.
assert_
(
len
(
pages
)
==
5
)
class
TweepyAuthTests
(
unittest
.
TestCase
):
...
...
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