From 357d8c2fc53fe4177f497956d7245fde3e9362d6 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Wed, 7 Nov 2012 20:40:26 -0800 Subject: [PATCH] Tweak create/destroy friendship test. Added a bit of sleep time between destroy and create requests to allow Twitter time to process. [ci skip] --- README.md | 2 +- tests.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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') -- 2.25.1