From c00647a5a02d9efd9e90f126ca86c654efac935f Mon Sep 17 00:00:00 2001 From: Mike Helmick Date: Fri, 17 May 2013 21:32:44 -0400 Subject: [PATCH] Remove report_spam test, update tests with --logging-filter * report spam was being abused and started turning a 403 * try to only log messages from twython, oauthlib is exposing our secrets when tests fail :( --- .travis.yml | 2 +- test_twython.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 839a6d9..c5f5c32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ env: - PROTECTED_TWITTER_2=TwythonSecure2 - TEST_TWEET_ID=332992304010899457 - TEST_LIST_ID=574 -script: nosetests -v test_twython:TwythonAPITestCase test_twython:TwythonAuthTestCase --cover-package="twython" --with-coverage +script: nosetests -v test_twython:TwythonAPITestCase test_twython:TwythonAuthTestCase --logging-filter="twython" --cover-package="twython" --with-coverage install: pip install -r requirements.txt notifications: email: false diff --git a/test_twython.py b/test_twython.py index 3c9c341..759dcb4 100644 --- a/test_twython.py +++ b/test_twython.py @@ -411,11 +411,6 @@ class TwythonAPITestCase(unittest.TestCase): information for, closest to a specified location succeeds''' self.api.get_closest_trends(lat='37', long='-122') - # Spam Reporting - def test_report_spam(self): - '''Test reporting user succeeds''' - self.api.report_spam(screen_name='justinbieber') - if __name__ == '__main__': unittest.main()