Hook up doctests so they are discoverable via trial:
trial terminatorlib
This commit is contained in:
parent
4ed920d625
commit
7beb3bf424
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