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,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