Commit c7c82b6b authored by Antoine Beaupré's avatar Antoine Beaupré

improve some test messages

parent f643d3d7
......@@ -4,6 +4,7 @@
from __future__ import division, absolute_import
from __future__ import print_function, unicode_literals
import logging
import re
import subprocess
......@@ -62,17 +63,17 @@ Codename: jessie''')
def test_extractor(fake_repo, tmpdir):
print(fake_repo)'extracting files from %s', fake_repo)
mirror = PackageMirror(str(fake_repo))
extractor = PackageExtractor([DefaultManpageRenderer.pattern],
root=str(fake_repo), destdir=str(tmpdir))
for suite, pkg in mirror.packages:
print("found package: %s" % pkg.get('Filename'))"found package: %s", pkg.get('Filename'))
assert pkg.get('Filename') is not None
if 'man' in pkg.get('Filename'):
assert len(extractor.files) == MANPAGES_COUNT
print("found manpages: %s" % extractor.files)
logging.debug("found manpages: %s", extractor.files)
assert len(mirror.packages) == len(PACKAGES)
return extractor.files, mirror.packages
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment