python-zulip-api/zulip_bots/zulip_bots/bots/link_shortener
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 link_shortener: Migrate from goo.gl to bit.ly service. 2018-05-04 05:09:07 +05:30
__init__.py bots: Create Link Shortener Bot. 2017-12-05 06:08:30 -08:00
doc.md link_shortener: Migrate from goo.gl to bit.ly service. 2018-05-04 05:09:07 +05:30
link_shortener.conf bots: Create Link Shortener Bot. 2017-12-05 06:08:30 -08:00
link_shortener.py link_shortener: Allow #% characters for shortening URL. 2018-05-15 09:12:40 -07:00
test_link_shortener.py bot tests: Adjust TestCase inheritance to avoid need to skip/filter. 2018-06-09 12:49:49 -04:00