From: Harmon Date: Wed, 16 Oct 2019 16:05:46 +0000 (-0500) Subject: Use unittest method to skip test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=43129973b90a0e8312be8a99e337f6b9ff01d81d;p=tweepy.git Use unittest method to skip test Instead of nose --- diff --git a/tests/test_api.py b/tests/test_api.py index 05d44a4..72a4c0e 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -5,8 +5,6 @@ import time import unittest from ast import literal_eval -from nose import SkipTest - from .config import tape, TweepyTestCase, use_replay, username from tweepy import API, FileCache, Friendship, MemoryCache from tweepy.parsers import Parser @@ -74,8 +72,7 @@ class TweepyAPITests(TweepyTestCase): self.api.retweets_of_me() def testretweet(self): - # TODO(josh): Need a way to get random tweets to retweet. - raise SkipTest() + self.skipTest('Missing method to retrieve random Tweet to Retweet') @tape.use_cassette('testretweets.json') def testretweets(self):