diff --git a/tests/example.py b/tests/example.py index d9f4d31..63e2e9c 100644 --- a/tests/example.py +++ b/tests/example.py @@ -54,7 +54,8 @@ ex_markdown = SimpleNamespace( ex_linuxdoc_dir = SimpleNamespace( type=tldp.doctypes.linuxdoc.Linuxdoc, - filename=opj(sampledocs, 'Linuxdoc-Larger', 'Linuxdoc-Larger.sgml'), + filename=opj(sampledocs, 'Linuxdoc-Larger', + 'Linuxdoc-Larger.sgml'), ) # -- a bit ugly, but grab each dict diff --git a/tests/test_sources.py b/tests/test_sources.py index 02fd00e..3bdec5c 100644 --- a/tests/test_sources.py +++ b/tests/test_sources.py @@ -25,6 +25,7 @@ sampledocs = os.path.join(os.path.dirname(__file__), 'sample-documents') widths = SimpleNamespace(status=20, stem=50) + class TestFileSourceCollectionMultiDir(TestToolsFilesystem): def test_multidir_finding_singlefiles(self): @@ -148,7 +149,6 @@ class TestSourceDocument(unittest.TestCase): self.assertTrue(ex.stem in result) self.assertTrue('source' in result) - def test_bad_dir_multiple_doctypes(self): fullpath = os.path.join(sampledocs, 'Bad-Dir-Multiple-Doctypes') with self.assertRaises(Exception) as ecm: @@ -156,6 +156,7 @@ class TestSourceDocument(unittest.TestCase): e = ecm.exception self.assertTrue('multiple document choices' in e.message) + class TestMissingSourceDocuments(TestToolsFilesystem): def test_init_missing(self):