From: Joshua Roesslein Date: Thu, 8 Nov 2012 04:40:26 +0000 (-0800) Subject: Tweak create/destroy friendship test. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=357d8c2fc53fe4177f497956d7245fde3e9362d6;p=tweepy.git Tweak create/destroy friendship test. Added a bit of sleep time between destroy and create requests to allow Twitter time to process. [ci skip] --- diff --git a/README.md b/README.md index 6f2dffe..c53a4cb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Tweepy [![Build Status](https://travis-ci.org/tweepy/tweepy.png)](https://travis-ci.org/tweepy/tweepy) ====== -A Python library for accessing the Twitter API. +*Twitter for Python!* Installation ------------ diff --git a/tests.py b/tests.py index bc7bad9..b17d0fd 100644 --- a/tests.py +++ b/tests.py @@ -115,6 +115,10 @@ class TweepyAPITests(unittest.TestCase): enemy = self.api.destroy_friendship('twitter') self.assertEqual(enemy.screen_name, 'twitter') + # Wait 5 seconds to allow Twitter time + # to process the friendship destroy request. + sleep(5) + friend = self.api.create_friendship('twitter') self.assertEqual(friend.screen_name, 'twitter')