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 :(
This commit is contained in:
Mike Helmick 2013-05-17 21:32:44 -04:00
parent 48fc5d4c36
commit c00647a5a0
2 changed files with 1 additions and 6 deletions

View file

@ -26,7 +26,7 @@ env:
- PROTECTED_TWITTER_2=TwythonSecure2 - PROTECTED_TWITTER_2=TwythonSecure2
- TEST_TWEET_ID=332992304010899457 - TEST_TWEET_ID=332992304010899457
- TEST_LIST_ID=574 - 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 install: pip install -r requirements.txt
notifications: notifications:
email: false email: false

View file

@ -411,11 +411,6 @@ class TwythonAPITestCase(unittest.TestCase):
information for, closest to a specified location succeeds''' information for, closest to a specified location succeeds'''
self.api.get_closest_trends(lat='37', long='-122') 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__': if __name__ == '__main__':
unittest.main() unittest.main()