mirror of https://github.com/tLDP/python-tldp
pep8 fixes
This commit is contained in:
parent
7f48a97b94
commit
1951281cd9
|
@ -54,7 +54,8 @@ ex_markdown = SimpleNamespace(
|
||||||
|
|
||||||
ex_linuxdoc_dir = SimpleNamespace(
|
ex_linuxdoc_dir = SimpleNamespace(
|
||||||
type=tldp.doctypes.linuxdoc.Linuxdoc,
|
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
|
# -- a bit ugly, but grab each dict
|
||||||
|
|
|
@ -25,6 +25,7 @@ sampledocs = os.path.join(os.path.dirname(__file__), 'sample-documents')
|
||||||
|
|
||||||
widths = SimpleNamespace(status=20, stem=50)
|
widths = SimpleNamespace(status=20, stem=50)
|
||||||
|
|
||||||
|
|
||||||
class TestFileSourceCollectionMultiDir(TestToolsFilesystem):
|
class TestFileSourceCollectionMultiDir(TestToolsFilesystem):
|
||||||
|
|
||||||
def test_multidir_finding_singlefiles(self):
|
def test_multidir_finding_singlefiles(self):
|
||||||
|
@ -148,7 +149,6 @@ class TestSourceDocument(unittest.TestCase):
|
||||||
self.assertTrue(ex.stem in result)
|
self.assertTrue(ex.stem in result)
|
||||||
self.assertTrue('source' in result)
|
self.assertTrue('source' in result)
|
||||||
|
|
||||||
|
|
||||||
def test_bad_dir_multiple_doctypes(self):
|
def test_bad_dir_multiple_doctypes(self):
|
||||||
fullpath = os.path.join(sampledocs, 'Bad-Dir-Multiple-Doctypes')
|
fullpath = os.path.join(sampledocs, 'Bad-Dir-Multiple-Doctypes')
|
||||||
with self.assertRaises(Exception) as ecm:
|
with self.assertRaises(Exception) as ecm:
|
||||||
|
@ -156,6 +156,7 @@ class TestSourceDocument(unittest.TestCase):
|
||||||
e = ecm.exception
|
e = ecm.exception
|
||||||
self.assertTrue('multiple document choices' in e.message)
|
self.assertTrue('multiple document choices' in e.message)
|
||||||
|
|
||||||
|
|
||||||
class TestMissingSourceDocuments(TestToolsFilesystem):
|
class TestMissingSourceDocuments(TestToolsFilesystem):
|
||||||
|
|
||||||
def test_init_missing(self):
|
def test_init_missing(self):
|
||||||
|
|
Loading…
Reference in New Issue