Skip to content

Commit

Permalink
Fix visual_tests/test.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
herm committed Jul 3, 2012
1 parent e93c560 commit eb682c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/visual_tests/test.py
Expand Up @@ -44,7 +44,7 @@
{'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):
Expand Down Expand Up @@ -78,9 +78,11 @@ def render(filename, width, height, bbox, quiet=False):
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)
Expand Down

0 comments on commit eb682c1

Please sign in to comment.