mostr-zulip-bot/zulip_bots/zulip_bots/bots/xkcd
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 bots: Move all bots and the bots API to separate package. 2017-07-18 02:20:27 -02:30
fixtures bots: Add complete tests for offline testing of xkcd bot. 2017-07-23 07:00:00 +05:30
__init__.py bots: Move all bots and the bots API to separate package. 2017-07-18 02:20:27 -02:30
doc.md doc: Remove markdown includes {!running-bot.md!} from bot docs. 2018-01-03 09:05:54 -05:00
logo.png bots/xkcd: Add a logo. 2017-10-03 18:11:38 -07:00
test_xkcd.py bot tests: Adjust TestCase inheritance to avoid need to skip/filter. 2018-06-09 12:49:49 -04:00
xkcd.py xkcd bot: Update bot & tests to use bot identity functionality. 2018-05-31 06:10:50 -04:00