language: python
python:
- - "2.6"
- "2.7"
script: nosetests -v tests:TweepyAPITests tests:TweepyCursorTests tests:TweepyCacheTests
env:
CONSUMER_SECRET="SpKzSXf16fEQ3AZtiRy8PkGOOgTSmL3Cdmh7o0D8"
ACCESS_KEY="82301637-v1wF1jWd7oa2ZFsIDUNlPKSpTdJ6f8dIMz1Zwmy58"
ACCESS_SECRET="21oUZmKWYuv7PZTcj13UFpPlmh7HD6glR8yayrOgg8"
-notifications:
- irc:
- channels:
- - "irc.freenode.net#tweepy"
- on_success: change
- on_failure: always
oauth_token = os.environ.get('ACCESS_KEY', '')
oauth_token_secret = os.environ.get('ACCESS_SECRET', '')
+test_tweet_id = '266367358078169089'
+
"""Unit tests"""
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