From 7beb3bf424395d185524743569b61c9cc88224b5 Mon Sep 17 00:00:00 2001 From: Elliot Murphy Date: Mon, 4 Jan 2010 23:47:51 -0500 Subject: [PATCH] Hook up doctests so they are discoverable via trial: trial terminatorlib --- terminatorlib/tests/__init__.py | 0 terminatorlib/tests/test_doctests.py | 13 +++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 terminatorlib/tests/__init__.py create mode 100644 terminatorlib/tests/test_doctests.py diff --git a/terminatorlib/tests/__init__.py b/terminatorlib/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/terminatorlib/tests/test_doctests.py b/terminatorlib/tests/test_doctests.py new file mode 100644 index 00000000..2b4c6d90 --- /dev/null +++ b/terminatorlib/tests/test_doctests.py @@ -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