Add StubBotTestCase and StubBotHandler.

We will start to use these for some of our bot test code.
This commit is contained in:
Steve Howell 2017-11-30 14:09:28 -08:00 committed by showell
parent fe662ed145
commit 205f7c16c7
2 changed files with 60 additions and 1 deletions

View file

@ -98,7 +98,7 @@ def main():
for test in tests:
if isinstance(test, TestCase):
# Exclude test base class from being tested.
if test.__class__.__name__ not in ['BotTestCase', 'BotTestCaseBase']:
if test.__class__.__name__ not in ['StubBotTestCase', 'BotTestCase', 'BotTestCaseBase']:
filtered_tests.addTest(test)
else:
filtered_tests.addTest(filter_tests(test))