Skip to content
Branch: master
Find file History
neiljp and showell 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.
Latest commit 6cdb83c Jun 8, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
__init__.py
doc.md zulip_bots: Rename bots/{bot}/readme.md -> bots/{bot}/doc.md. Aug 16, 2017
helloworld.py
test_helloworld.py
You can’t perform that action at this time.