fixup more image comparison tests and expected results
This commit is contained in:
parent
beb65664f7
commit
6722ea0394
3 changed files with 2 additions and 2 deletions
Binary file not shown.
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 16 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 14 KiB |
|
@ -18,7 +18,7 @@ if 'csv' in mapnik.DatasourceCache.plugin_names():
|
|||
mapnik.render(m,im)
|
||||
actual = '/tmp/mapnik-marker-ellipse-render1.png'
|
||||
expected = 'images/support/mapnik-marker-ellipse-render1.png'
|
||||
im.save(actual)
|
||||
im.save(actual,'png32')
|
||||
expected_im = mapnik.Image.open(expected)
|
||||
eq_(im.tostring('png32'),expected_im.tostring('png32'), 'failed comparing actual (%s) and expected (%s)' % (actual,'tests/python_tests/'+ expected))
|
||||
|
||||
|
@ -31,7 +31,7 @@ if 'csv' in mapnik.DatasourceCache.plugin_names():
|
|||
mapnik.render(m,im)
|
||||
actual = '/tmp/mapnik-marker-ellipse-render2.png'
|
||||
expected = 'images/support/mapnik-marker-ellipse-render2.png'
|
||||
im.save(actual)
|
||||
im.save(actual,'png32')
|
||||
expected_im = mapnik.Image.open(expected)
|
||||
eq_(im.tostring('png32'),expected_im.tostring('png32'), 'failed comparing actual (%s) and expected (%s)' % (actual,'tests/python_tests/'+ expected))
|
||||
|
||||
|
|
Loading…
Reference in a new issue