Update python tests.

This commit is contained in:
Hermann Kraus 2012-03-20 21:34:16 +01:00
parent f7a387f8af
commit fe2879ac42
3 changed files with 6 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View file

@ -2,7 +2,7 @@
import mapnik
import sys
import os.path
import compare
from compare import compare, summary
class MyText(mapnik.FormattingNode):
def __init__(self):
@ -98,3 +98,8 @@ format_trees = [
for format_tree in format_trees:
text.placements.defaults.format_tree = format_tree[1]
mapnik.render_to_file(m, os.path.join("images", 'python-%s.png' % format_tree[0]), 'png')
compare(os.path.join("images", 'python-%s.png' % format_tree[0]),
os.path.join("images", 'python-%s-reference.png' % format_tree[0])
)
summary()