1import doctest
2import os
3
4
5from migrate.tests import fixture
6
7# Collect tests for all handwritten docs: doc/*.rst
8
9dir = ('..','..','..','doc','source')
10absdir = (os.path.dirname(os.path.abspath(__file__)),)+dir
11dirpath = os.path.join(*absdir)
12files = [f for f in os.listdir(dirpath) if f.endswith('.rst')]
13paths = [os.path.join(*(dir+(f,))) for f in files]
14assert len(paths) > 0
15suite = doctest.DocFileSuite(*paths)
16
17def test_docs():
18    suite.debug()
19