Commit d3ca8041 authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Fix failing tests and tweak CI build.

parent 74a3e722
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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment