python-zulip-api/zulip_bots/zulip_bots
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
..
bots bot tests: Adjust TestCase inheritance to avoid need to skip/filter. 2018-06-09 12:49:49 -04:00
bots_unmaintained bots: Refactor Youtube bot. 2017-12-09 03:56:33 -08:00
tests bots: Print send_message errors for dev debugging. 2018-06-04 05:59:10 -04:00
.gitignore bots: Move all bots and the bots API to separate package. 2017-07-18 02:20:27 -02:30
__init__.py bots: Move all bots and the bots API to separate package. 2017-07-18 02:20:27 -02:30
custom_exceptions.py bots: Add magic method validate_config(). 2018-02-13 11:02:17 -08:00
game_handler.py game_handler: Support single player games and enforce 'rules' command. 2018-03-25 12:53:15 -04:00
lib.py bots: Print send_message errors for dev debugging. 2018-06-04 05:59:10 -04:00
provision.py zulip_bots/provision: Use subprocess and stop being --quiet. 2018-06-06 16:36:21 -02:30
request_test_lib.py bot tests: Allow raw responses in fixtures. 2018-06-04 10:13:38 -07:00
run.py zulip_bots: Display neat error message for missing bot dependencies. 2018-06-06 13:23:16 -07:00
simple_lib.py bots: Support determining bot runtime identity. 2018-05-31 06:10:50 -04:00
terminal.py zulip-terminal: Add bot's directory to sys.path. 2018-05-20 07:07:43 -04:00
test_file_utils.py zulip_bots: Use utf-8 when reading fixtures. 2017-12-14 05:56:55 -05:00
test_lib.py bot tests: Adjust TestCase inheritance to avoid need to skip/filter. 2018-06-09 12:49:49 -04:00