Fix visual_tests/test.py.
This commit is contained in:
parent
e93c5604a6
commit
eb682c1f4f
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue