mirror of https://github.com/tLDP/python-tldp
improve orphan verbosity testing
This commit is contained in:
parent
0ff6dc5594
commit
6a97e4058a
|
@ -27,7 +27,7 @@ class TestDriverDetail(TestInventoryBase):
|
|||
|
||||
def test_stale_detail_verbosity(self):
|
||||
c = self.config
|
||||
self.add_stale('Frobnitz-HOWTO', example.ex_docbook4xml)
|
||||
self.add_stale('Stale-HOWTO', example.ex_docbook4xml)
|
||||
c.verbose = True,
|
||||
inv = tldp.inventory.Inventory(c.pubdir, c.sourcedir)
|
||||
docs = inv.all.values()
|
||||
|
@ -38,7 +38,7 @@ class TestDriverDetail(TestInventoryBase):
|
|||
|
||||
def test_broken_detail_verbosity(self):
|
||||
c = self.config
|
||||
self.add_broken('Frobnitz-HOWTO', example.ex_docbook4xml)
|
||||
self.add_broken('Broken-HOWTO', example.ex_docbook4xml)
|
||||
c.verbose = True,
|
||||
inv = tldp.inventory.Inventory(c.pubdir, c.sourcedir)
|
||||
docs = inv.all.values()
|
||||
|
@ -47,6 +47,17 @@ class TestDriverDetail(TestInventoryBase):
|
|||
stdout.seek(0)
|
||||
self.assertTrue('missing output' in stdout.read())
|
||||
|
||||
def test_orphan_verbosity(self):
|
||||
c = self.config
|
||||
self.add_orphan('Orphan-HOWTO', example.ex_docbook4xml)
|
||||
c.verbose = True,
|
||||
inv = tldp.inventory.Inventory(c.pubdir, c.sourcedir)
|
||||
docs = inv.all.values()
|
||||
stdout = StringIO()
|
||||
tldp.driver.detail(c, docs, file=stdout)
|
||||
stdout.seek(0)
|
||||
self.assertTrue('missing source' in stdout.read())
|
||||
|
||||
|
||||
class TestDriverSummary(TestInventoryBase):
|
||||
|
||||
|
@ -161,7 +172,7 @@ class TestDriverProcessSkips(TestInventoryBase):
|
|||
self.assertEquals(len(inc) + 1, len(inv.all.keys()))
|
||||
|
||||
|
||||
#@unittest.skip("Except when you want to spend time....")
|
||||
@unittest.skip("Except when you want to spend time....")
|
||||
class TestDriverBuild(TestInventoryBase):
|
||||
|
||||
def test_build_linuxdoc(self):
|
||||
|
|
Loading…
Reference in New Issue