zulip_bots: Make BotTestCase the only helper library.

Renames StubBotTestCase to BotTestCase and removes
legacy code for supporting both names.
This commit is contained in:
Robert Hönig 2017-12-14 11:24:11 +01:00 committed by showell
parent a475077da9
commit b306324bfa
24 changed files with 51 additions and 57 deletions

View file

@ -1,4 +1,4 @@
from zulip_bots.test_lib import StubBotTestCase, read_bot_fixture_data
from zulip_bots.test_lib import BotTestCase, read_bot_fixture_data
from contextlib import contextmanager
@ -36,7 +36,7 @@ def mock_dialogflow(test_name: str, bot_name: str) -> Any:
mock_text_request.return_value = request
yield
class TestDialogFlowBot(StubBotTestCase):
class TestDialogFlowBot(BotTestCase):
bot_name = 'dialogflow'
def _test(self, test_name: str, message: str, response: str) -> None: