diff --git a/zulip_bots/zulip_bots/bots/connect_four/test_connect_four.py b/zulip_bots/zulip_bots/bots/connect_four/test_connect_four.py index 1efe812..074d6cc 100644 --- a/zulip_bots/zulip_bots/bots/connect_four/test_connect_four.py +++ b/zulip_bots/zulip_bots/bots/connect_four/test_connect_four.py @@ -1,10 +1,8 @@ from zulip_bots.test_lib import BotTestCase, DefaultTests -from contextlib import contextmanager -from unittest.mock import MagicMock from zulip_bots.bots.connect_four.connect_four import * from zulip_bots.game_handler import BadMoveException -from typing import Dict, Any, List +from typing import Dict, List class TestConnectFourBot(BotTestCase, DefaultTests): diff --git a/zulip_bots/zulip_bots/bots/dropbox_share/test_dropbox_share.py b/zulip_bots/zulip_bots/bots/dropbox_share/test_dropbox_share.py index 41cc14b..0aac885 100644 --- a/zulip_bots/zulip_bots/bots/dropbox_share/test_dropbox_share.py +++ b/zulip_bots/zulip_bots/bots/dropbox_share/test_dropbox_share.py @@ -1,5 +1,4 @@ from zulip_bots.test_lib import BotTestCase, DefaultTests -from typing import List from unittest.mock import patch from zulip_bots.bots.dropbox_share.test_util import ( diff --git a/zulip_bots/zulip_bots/bots/followup/test_followup.py b/zulip_bots/zulip_bots/bots/followup/test_followup.py index 458249a..f307219 100755 --- a/zulip_bots/zulip_bots/bots/followup/test_followup.py +++ b/zulip_bots/zulip_bots/bots/followup/test_followup.py @@ -5,8 +5,6 @@ from zulip_bots.test_lib import ( get_bot_message_handler, ) -from typing import Any - class TestFollowUpBot(BotTestCase, DefaultTests): bot_name = "followup" diff --git a/zulip_bots/zulip_bots/bots/game_handler_bot/test_game_handler_bot.py b/zulip_bots/zulip_bots/bots/game_handler_bot/test_game_handler_bot.py index deaefbd..55b4a2f 100644 --- a/zulip_bots/zulip_bots/bots/game_handler_bot/test_game_handler_bot.py +++ b/zulip_bots/zulip_bots/bots/game_handler_bot/test_game_handler_bot.py @@ -1,8 +1,7 @@ from zulip_bots.test_lib import BotTestCase, DefaultTests from zulip_bots.game_handler import GameInstance -from contextlib import contextmanager -from mock import MagicMock, patch +from mock import patch from typing import Any, Dict, List diff --git a/zulip_bots/zulip_bots/bots/game_of_fifteen/test_game_of_fifteen.py b/zulip_bots/zulip_bots/bots/game_of_fifteen/test_game_of_fifteen.py index 6c50700..105f7b3 100644 --- a/zulip_bots/zulip_bots/bots/game_of_fifteen/test_game_of_fifteen.py +++ b/zulip_bots/zulip_bots/bots/game_of_fifteen/test_game_of_fifteen.py @@ -1,10 +1,8 @@ from zulip_bots.test_lib import BotTestCase, DefaultTests -from contextlib import contextmanager -from unittest.mock import MagicMock from zulip_bots.bots.game_of_fifteen.game_of_fifteen import GameOfFifteenModel from zulip_bots.game_handler import BadMoveException -from typing import Dict, Any, List, Tuple +from typing import Dict, List, Tuple class TestGameOfFifteenBot(BotTestCase, DefaultTests): diff --git a/zulip_bots/zulip_bots/bots/giphy/test_giphy.py b/zulip_bots/zulip_bots/bots/giphy/test_giphy.py index 6c82982..3b28b81 100755 --- a/zulip_bots/zulip_bots/bots/giphy/test_giphy.py +++ b/zulip_bots/zulip_bots/bots/giphy/test_giphy.py @@ -1,7 +1,6 @@ -from unittest.mock import patch, MagicMock +from unittest.mock import patch from requests.exceptions import HTTPError, ConnectionError -from typing import Any, Union from zulip_bots.test_lib import StubBotHandler, BotTestCase, DefaultTests, get_bot_message_handler class TestGiphyBot(BotTestCase, DefaultTests): diff --git a/zulip_bots/zulip_bots/bots/github_detail/test_github_detail.py b/zulip_bots/zulip_bots/bots/github_detail/test_github_detail.py index ffbba00..dc9eaa1 100755 --- a/zulip_bots/zulip_bots/bots/github_detail/test_github_detail.py +++ b/zulip_bots/zulip_bots/bots/github_detail/test_github_detail.py @@ -5,8 +5,6 @@ from zulip_bots.test_lib import ( get_bot_message_handler, ) -from typing import Any - class TestGithubDetailBot(BotTestCase, DefaultTests): bot_name = "github_detail" mock_config = {'owner': 'zulip', 'repo': 'zulip'} diff --git a/zulip_bots/zulip_bots/bots/help/test_help.py b/zulip_bots/zulip_bots/bots/help/test_help.py index 69ad6a6..d4bcce6 100755 --- a/zulip_bots/zulip_bots/bots/help/test_help.py +++ b/zulip_bots/zulip_bots/bots/help/test_help.py @@ -1,7 +1,5 @@ from zulip_bots.test_lib import BotTestCase, DefaultTests -from typing import Any - class TestHelpBot(BotTestCase, DefaultTests): bot_name = "help" diff --git a/zulip_bots/zulip_bots/bots/idonethis/test_idonethis.py b/zulip_bots/zulip_bots/bots/idonethis/test_idonethis.py index 6f63dba..a4ea778 100644 --- a/zulip_bots/zulip_bots/bots/idonethis/test_idonethis.py +++ b/zulip_bots/zulip_bots/bots/idonethis/test_idonethis.py @@ -2,8 +2,6 @@ from unittest.mock import patch from zulip_bots.test_lib import BotTestCase, DefaultTests -import requests - class TestIDoneThisBot(BotTestCase, DefaultTests): bot_name = "idonethis" # type: str diff --git a/zulip_bots/zulip_bots/bots/salesforce/test_salesforce.py b/zulip_bots/zulip_bots/bots/salesforce/test_salesforce.py index 00d5128..cf494f1 100644 --- a/zulip_bots/zulip_bots/bots/salesforce/test_salesforce.py +++ b/zulip_bots/zulip_bots/bots/salesforce/test_salesforce.py @@ -1,10 +1,8 @@ from zulip_bots.test_lib import BotTestCase, DefaultTests, StubBotHandler, read_bot_fixture_data -import simple_salesforce from simple_salesforce.exceptions import SalesforceAuthenticationFailed from contextlib import contextmanager from unittest.mock import patch from typing import Any, Dict -import logging @contextmanager diff --git a/zulip_bots/zulip_bots/bots/susi/test_susi.py b/zulip_bots/zulip_bots/bots/susi/test_susi.py index 4aa4a65..30d62ad 100644 --- a/zulip_bots/zulip_bots/bots/susi/test_susi.py +++ b/zulip_bots/zulip_bots/bots/susi/test_susi.py @@ -3,8 +3,6 @@ from zulip_bots.test_lib import ( DefaultTests, ) -from typing import Any - class TestSusiBot(BotTestCase, DefaultTests): bot_name = "susi" diff --git a/zulip_bots/zulip_bots/bots/tictactoe/test_tictactoe.py b/zulip_bots/zulip_bots/bots/tictactoe/test_tictactoe.py index efb0cc0..6099224 100644 --- a/zulip_bots/zulip_bots/bots/tictactoe/test_tictactoe.py +++ b/zulip_bots/zulip_bots/bots/tictactoe/test_tictactoe.py @@ -1,7 +1,6 @@ from zulip_bots.test_lib import BotTestCase, DefaultTests from zulip_bots.game_handler import GameInstance -from unittest.mock import patch from typing import List, Tuple, Any diff --git a/zulip_bots/zulip_bots/bots/twitpost/test_twitpost.py b/zulip_bots/zulip_bots/bots/twitpost/test_twitpost.py index bd5e970..adc4c0d 100644 --- a/zulip_bots/zulip_bots/bots/twitpost/test_twitpost.py +++ b/zulip_bots/zulip_bots/bots/twitpost/test_twitpost.py @@ -9,9 +9,6 @@ from zulip_bots.test_file_utils import ( ) from unittest.mock import patch import tweepy -import os -import json - class TestTwitpostBot(BotTestCase, DefaultTests): bot_name = "twitpost" diff --git a/zulip_bots/zulip_bots/bots/witai/test_witai.py b/zulip_bots/zulip_bots/bots/witai/test_witai.py index 9f1a980..6248dcf 100644 --- a/zulip_bots/zulip_bots/bots/witai/test_witai.py +++ b/zulip_bots/zulip_bots/bots/witai/test_witai.py @@ -1,5 +1,4 @@ from unittest.mock import patch -import sys from typing import Dict, Any, Optional from zulip_bots.test_lib import BotTestCase, DefaultTests, get_bot_message_handler, StubBotHandler diff --git a/zulip_bots/zulip_bots/bots/youtube/test_youtube.py b/zulip_bots/zulip_bots/bots/youtube/test_youtube.py index 1ea6ede..163bc98 100644 --- a/zulip_bots/zulip_bots/bots/youtube/test_youtube.py +++ b/zulip_bots/zulip_bots/bots/youtube/test_youtube.py @@ -2,7 +2,8 @@ from unittest.mock import patch from requests.exceptions import HTTPError, ConnectionError from zulip_bots.test_lib import StubBotHandler, BotTestCase, DefaultTests, get_bot_message_handler -from typing import Any, Union, Dict +from typing import Dict + class TestYoutubeBot(BotTestCase, DefaultTests): bot_name = "youtube" normal_config = {'key': '12345678',