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
d3ca8041
Commit
d3ca8041
authored
Nov 08, 2012
by
Joshua Roesslein
Browse files
Fix failing tests and tweak CI build.
parent
74a3e722
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
d3ca8041
language
:
python
python
:
-
"
2.6"
-
"
2.7"
script
:
nosetests -v tests:TweepyAPITests tests:TweepyCursorTests tests:TweepyCacheTests
env
:
...
...
@@ -9,10 +8,4 @@ env:
CONSUMER_SECRET="SpKzSXf16fEQ3AZtiRy8PkGOOgTSmL3Cdmh7o0D8"
ACCESS_KEY="82301637-v1wF1jWd7oa2ZFsIDUNlPKSpTdJ6f8dIMz1Zwmy58"
ACCESS_SECRET="21oUZmKWYuv7PZTcj13UFpPlmh7HD6glR8yayrOgg8"
notifications
:
irc
:
channels
:
-
"
irc.freenode.net#tweepy"
on_success
:
change
on_failure
:
always
tests.py
View file @
d3ca8041
...
...
@@ -14,6 +14,8 @@ oauth_consumer_secret = os.environ.get('CONSUMER_SECRET', '')
oauth_token
=
os
.
environ
.
get
(
'ACCESS_KEY'
,
''
)
oauth_token_secret
=
os
.
environ
.
get
(
'ACCESS_SECRET'
,
''
)
test_tweet_id
=
'266367358078169089'
"""Unit tests"""
...
...
@@ -52,14 +54,14 @@ class TweepyAPITests(unittest.TestCase):
self
.
api
.
retweets_of_me
()
def
testretweet
(
self
):
s
=
self
.
api
.
retweet
(
123
)
s
=
self
.
api
.
retweet
(
test_tweet_id
)
s
.
destroy
()
def
testretweets
(
self
):
self
.
api
.
retweets
(
123
)
self
.
api
.
retweets
(
test_tweet_id
)
def
testgetstatus
(
self
):
self
.
api
.
get_status
(
id
=
123
)
self
.
api
.
get_status
(
id
=
test_tweet_id
)
def
testupdateanddestroystatus
(
self
):
# test update
...
...
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