Merge the excellent doctest autodiscovery feature from elliot murphy. run 'trial terminatorlib' in the toplevel directory and marvel at his glorious works
This commit is contained in:
commit
55dbb0e336
0
terminatorlib/tests/__init__.py
Normal file
0
terminatorlib/tests/__init__.py
Normal file
13
terminatorlib/tests/test_doctests.py
Normal file
13
terminatorlib/tests/test_doctests.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
"""Load up the tests."""
|
||||||
|
from unittest import TestSuite
|
||||||
|
from doctest import DocTestSuite, ELLIPSIS
|
||||||
|
|
||||||
|
def test_suite():
|
||||||
|
suite = TestSuite()
|
||||||
|
for name in (
|
||||||
|
'config',
|
||||||
|
'plugin',
|
||||||
|
'borg',
|
||||||
|
):
|
||||||
|
suite.addTest(DocTestSuite('terminatorlib.' + name))
|
||||||
|
return suite
|
Loading…
Reference in New Issue
Block a user