Add StubBotTestCase and StubBotHandler.
We will start to use these for some of our bot test code.
This commit is contained in:
parent
fe662ed145
commit
205f7c16c7
2 changed files with 60 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue