commit 3517e54ca7d79a4e2253a73d7296767e124d2474 Author: Cecylia Bocovich cohosh@torproject.org Date: Mon Jan 20 19:55:15 2020 -0500
Remove twitter test that requires auth
Removes tests that require access to secrets. --- tests/test_twitter.py | 6 ------ 1 file changed, 6 deletions(-)
diff --git a/tests/test_twitter.py b/tests/test_twitter.py index a1515d0..1ad604d 100644 --- a/tests/test_twitter.py +++ b/tests/test_twitter.py @@ -18,12 +18,6 @@ class TwitterTests(unittest.TestCase): print("tearDown()")
- def test_load_messages(self): - data = self.tw_client.twitter_data() - print(data) - assert data['events'] - - def test_parse_tweet(self): e = {'type': 'message_create', 'id': '1178649287208689669', 'created_timestamp': '1569846862972', 'message_create': {'target': {'recipient_id': '2514714800'}, 'sender_id': '1467062174', 'message_data': {'text': 'windows 10', 'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': []}}}} message_id = { 'id': e['id'], 'twitter_handle': e['message_create']['sender_id'] }
tor-commits@lists.torproject.org