mirror of https://github.com/tLDP/python-tldp
adjust verbose output a tad
This commit is contained in:
parent
068000f414
commit
4939347e85
|
@ -34,7 +34,7 @@ class TestDriverDetail(TestInventoryBase):
|
|||
stdout = StringIO()
|
||||
tldp.driver.detail(c, docs, file=stdout)
|
||||
stdout.seek(0)
|
||||
self.assertTrue('newer file' in stdout.read())
|
||||
self.assertTrue('newer source' in stdout.read())
|
||||
|
||||
def test_broken_detail_verbosity(self):
|
||||
c = self.config
|
||||
|
@ -45,7 +45,7 @@ class TestDriverDetail(TestInventoryBase):
|
|||
stdout = StringIO()
|
||||
tldp.driver.detail(c, docs, file=stdout)
|
||||
stdout.seek(0)
|
||||
self.assertTrue('missing file' in stdout.read())
|
||||
self.assertTrue('missing output' in stdout.read())
|
||||
|
||||
|
||||
class TestDriverSummary(TestInventoryBase):
|
||||
|
|
|
@ -200,10 +200,10 @@ class SourceDocument(object):
|
|||
if verbose:
|
||||
for f in self.newer:
|
||||
fname = os.path.join(self.dirname, f)
|
||||
print(' newer file {}'.format(fname), file=file)
|
||||
print(' newer source {}'.format(fname), file=file)
|
||||
if self.output:
|
||||
for f in self.output.missing:
|
||||
print(' missing file {}'.format(f), file=file)
|
||||
print(' missing output {}'.format(f), file=file)
|
||||
|
||||
#
|
||||
# -- end of file
|
||||
|
|
Loading…
Reference in New Issue