mostr-zulip-bot/zulip_bots/zulip_bots/bots/google_translate
neiljp (Neil Pilgrim) 6cdb83ce72 bot tests: Adjust TestCase inheritance to avoid need to skip/filter.
Previously the test-bots script filtered out base-class tests from
BotTestCase. With this change, BotTestCase continues to inherit from
unittest.TestCase, but the default test_* methods previously in this
class are now in a new DefaultTests class, which does not. Instead, each
bot needs to inherit from BotTestCase and DefaultTests *explicitly*.

This avoids the need to filter out the base-class tests, which
simplifies the test-bots script, and may ease any migration to eg.
pytest.

The DefaultTests class does require some non-implemented methods which
BotTestCase provides.
2018-06-09 12:49:49 -04:00
..
fixtures google_translate bot: Add test for invalid api key. 2018-01-04 10:34:16 -05:00
__init__.py add _ to googletranslate and googlesearch 2017-12-11 13:15:43 -06:00
doc.md add _ to googletranslate and googlesearch 2017-12-11 13:15:43 -06:00
google_translate.conf add _ to googletranslate and googlesearch 2017-12-11 13:15:43 -06:00
google_translate.py google_translate bot: Simplify API key check. 2018-01-04 10:34:16 -05:00
test_google_translate.py bot tests: Adjust TestCase inheritance to avoid need to skip/filter. 2018-06-09 12:49:49 -04:00