python-zulip-api/zulip_bots/zulip_bots/bots/mention
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
..
assets interactive bots: Create Mention bot. 2017-12-28 16:33:00 -05:00
fixtures mention bot: Add fixture for invalid api key test. 2018-02-06 15:27:45 +01:00
__init__.py interactive bots: Create Mention bot. 2017-12-28 16:33:00 -05:00
doc.md interactive bots: Create Mention bot. 2017-12-28 16:33:00 -05:00
mention.conf zulip_bots: Remove comments from config file in Mention Bot. 2017-12-30 17:51:10 +01:00
mention.py mypy: Avoid 'Any' for message in bots. 2018-05-30 07:11:16 -04:00
test_mention.py bot tests: Adjust TestCase inheritance to avoid need to skip/filter. 2018-06-09 12:49:49 -04:00