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,8 +1,8 @@
from zulip_bots.test_lib import StubBotTestCase
from zulip_bots.test_lib import BotTestCase
from typing import Optional
class TestWeatherBot(StubBotTestCase):
class TestWeatherBot(BotTestCase):
bot_name = "weather"
help_content = '''
@ -23,7 +23,7 @@ class TestWeatherBot(StubBotTestCase):
else:
self.verify_reply(message, response)
# Override default function in StubBotTestCase
# Override default function in BotTestCase
def test_bot_responds_to_empty_message(self) -> None:
self._test('', self.help_content)