File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
2
python :
3
- - " 2.6"
4
3
- " 2.7"
5
4
script : nosetests -v tests:TweepyAPITests tests:TweepyCursorTests tests:TweepyCacheTests
6
5
env :
9
8
CONSUMER_SECRET="SpKzSXf16fEQ3AZtiRy8PkGOOgTSmL3Cdmh7o0D8"
10
9
ACCESS_KEY="82301637-v1wF1jWd7oa2ZFsIDUNlPKSpTdJ6f8dIMz1Zwmy58"
11
10
ACCESS_SECRET="21oUZmKWYuv7PZTcj13UFpPlmh7HD6glR8yayrOgg8"
12
- notifications :
13
- irc :
14
- channels :
15
- - " irc.freenode.net#tweepy"
16
- on_success : change
17
- on_failure : always
18
11
Original file line number Diff line number Diff line change 14
14
oauth_token = os .environ .get ('ACCESS_KEY' , '' )
15
15
oauth_token_secret = os .environ .get ('ACCESS_SECRET' , '' )
16
16
17
+ test_tweet_id = '266367358078169089'
18
+
17
19
"""Unit tests"""
18
20
19
21
@@ -52,14 +54,14 @@ def testretweetsofme(self):
52
54
self .api .retweets_of_me ()
53
55
54
56
def testretweet (self ):
55
- s = self .api .retweet (123 )
57
+ s = self .api .retweet (test_tweet_id )
56
58
s .destroy ()
57
59
58
60
def testretweets (self ):
59
- self .api .retweets (123 )
61
+ self .api .retweets (test_tweet_id )
60
62
61
63
def testgetstatus (self ):
62
- self .api .get_status (id = 123 )
64
+ self .api .get_status (id = test_tweet_id )
63
65
64
66
def testupdateanddestroystatus (self ):
65
67
# test update
You can’t perform that action at this time.
0 commit comments