From: Joshua Roesslein Date: Thu, 8 Nov 2012 08:13:58 +0000 (-0800) Subject: Fix failing tests and tweak CI build. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d3ca8041b20bd84be6106fa3d5c2be37116203aa;p=tweepy.git Fix failing tests and tweak CI build. --- diff --git a/.travis.yml b/.travis.yml index aa08867..9ce0fbb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ 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 diff --git a/tests.py b/tests.py index b17d0fd..e1271fd 100644 --- a/tests.py +++ b/tests.py @@ -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