bot tests: Remove unnecessary imports.
MODIFY
zulip_bots/zulip_bots/bots/connect_four/test_connect_four.py
zulip_bots/zulip_bots/bots/connect_four/test_connect_four.py
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):

MODIFY
zulip_bots/zulip_bots/bots/dropbox_share/test_dropbox_share.py
zulip_bots/zulip_bots/bots/dropbox_share/test_dropbox_share.py
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 (

MODIFY
zulip_bots/zulip_bots/bots/followup/test_followup.py
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"

MODIFY
zulip_bots/zulip_bots/bots/game_handler_bot/test_game_handler_bot.py
zulip_bots/zulip_bots/bots/game_handler_bot/test_game_handler_bot.py
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

MODIFY
zulip_bots/zulip_bots/bots/game_of_fifteen/test_game_of_fifteen.py
zulip_bots/zulip_bots/bots/game_of_fifteen/test_game_of_fifteen.py
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):

MODIFY
zulip_bots/zulip_bots/bots/giphy/test_giphy.py
zulip_bots/zulip_bots/bots/giphy/test_giphy.py
-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):

MODIFY
zulip_bots/zulip_bots/bots/github_detail/test_github_detail.py
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'}

MODIFY
zulip_bots/zulip_bots/bots/help/test_help.py
zulip_bots/zulip_bots/bots/help/test_help.py
from zulip_bots.test_lib import BotTestCase, DefaultTests
-from typing import Any
-
class TestHelpBot(BotTestCase, DefaultTests):
bot_name = "help"

MODIFY
zulip_bots/zulip_bots/bots/idonethis/test_idonethis.py
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

MODIFY
zulip_bots/zulip_bots/bots/salesforce/test_salesforce.py
zulip_bots/zulip_bots/bots/salesforce/test_salesforce.py
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

MODIFY
zulip_bots/zulip_bots/bots/susi/test_susi.py
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"

MODIFY
zulip_bots/zulip_bots/bots/tictactoe/test_tictactoe.py
zulip_bots/zulip_bots/bots/tictactoe/test_tictactoe.py
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

MODIFY
zulip_bots/zulip_bots/bots/twitpost/test_twitpost.py
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"

MODIFY
zulip_bots/zulip_bots/bots/witai/test_witai.py
zulip_bots/zulip_bots/bots/witai/test_witai.py
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

MODIFY
zulip_bots/zulip_bots/bots/youtube/test_youtube.py
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',

bot tests: Remove unnecessary imports.