Fix visual_tests/test.py.

This commit is contained in:
Hermann Kraus 2012-07-03 23:39:34 +02:00
parent e93c5604a6
commit eb682c1f4f

View file

@ -44,7 +44,7 @@ files = [
{'name': "rtl-point", 'sizes': [(200, 200)]},
{'name': "jalign-auto", 'sizes': [(200, 200)]},
{'name': "line-offset", 'sizes':[(900, 250)],
'bbox': mapnik.Box2d(-5.192, 50.189, -5.174, 50.195)}
'bbox': mapnik.Box2d(-5.192, 50.189, -5.174, 50.195)},
]
def render(filename, width, height, bbox, quiet=False):
@ -78,9 +78,11 @@ if __name__ == "__main__":
quiet = False
if len(sys.argv) == 2:
files = [(sys.argv[1], (500, 500))]
files = [{"name": sys.argv[1], "sizes": sizes_few_square}]
elif len(sys.argv) > 2:
files = [sys.argv[1:]]
files = []
for name in argv[1:]:
files.append({"name": name})
for f in files:
config = dict(defaults)