Fix failing tests and tweak CI build.
authorJoshua Roesslein <jroesslein@gmail.com>
Thu, 8 Nov 2012 08:13:58 +0000 (00:13 -0800)
committerJoshua Roesslein <jroesslein@gmail.com>
Thu, 8 Nov 2012 08:13:58 +0000 (00:13 -0800)
.travis.yml
tests.py

index aa08867125882a0299df1c0fc8fe8fbc501391e8..9ce0fbb6bcf592e24397ae6c55dbc9258ae0a4ac 100644 (file)
@@ -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
 
index b17d0fd39f53d969525e8baf51cca5f08efa875e..e1271fd8f850580618853ce84fce52f26685d83f 100644 (file)
--- 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