Skip to content

Commit d3ca804

Browse files
committed
Fix failing tests and tweak CI build.
1 parent 74a3e72 commit d3ca804

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: python
22
python:
3-
- "2.6"
43
- "2.7"
54
script: nosetests -v tests:TweepyAPITests tests:TweepyCursorTests tests:TweepyCacheTests
65
env:
@@ -9,10 +8,4 @@ env:
98
CONSUMER_SECRET="SpKzSXf16fEQ3AZtiRy8PkGOOgTSmL3Cdmh7o0D8"
109
ACCESS_KEY="82301637-v1wF1jWd7oa2ZFsIDUNlPKSpTdJ6f8dIMz1Zwmy58"
1110
ACCESS_SECRET="21oUZmKWYuv7PZTcj13UFpPlmh7HD6glR8yayrOgg8"
12-
notifications:
13-
irc:
14-
channels:
15-
- "irc.freenode.net#tweepy"
16-
on_success: change
17-
on_failure: always
1811

tests.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
oauth_token = os.environ.get('ACCESS_KEY', '')
1515
oauth_token_secret = os.environ.get('ACCESS_SECRET', '')
1616

17+
test_tweet_id = '266367358078169089'
18+
1719
"""Unit tests"""
1820

1921

@@ -52,14 +54,14 @@ def testretweetsofme(self):
5254
self.api.retweets_of_me()
5355

5456
def testretweet(self):
55-
s = self.api.retweet(123)
57+
s = self.api.retweet(test_tweet_id)
5658
s.destroy()
5759

5860
def testretweets(self):
59-
self.api.retweets(123)
61+
self.api.retweets(test_tweet_id)
6062

6163
def testgetstatus(self):
62-
self.api.get_status(id=123)
64+
self.api.get_status(id=test_tweet_id)
6365

6466
def testupdateanddestroystatus(self):
6567
# test update

0 commit comments

Comments
 (0)