Move python test maps from 'good_maps' directory

If the CirclesDatasource class was not available from the python_plugin_tests module then the 'load_good_maps' test
would fail. The class would not be available if, for example, the python plugin had not been built or if shapely was not
available on the test system. (Pull request #1414 removes the dependency on Shapely.)

The error reporting should be tidied up for this case but for the moment, move the Python plugin's test maps into their
own directory since they're not guaranteed to be 'good maps' in all cases at the moment.

Hopefully addresses issue #1407
This commit is contained in:
Rich Wareham 2012-08-18 17:34:58 +01:00
parent 854d872447
commit b085b401db
3 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ if 'python' in mapnik.DatasourceCache.instance().plugin_names() and have_shapely
def test_python_point_rendering():
m = mapnik.Map(512,512)
mapnik.load_map(m,'../data/good_maps/python_point_datasource.xml')
mapnik.load_map(m,'../data/python_plugin/python_point_datasource.xml')
m.zoom_all()
im = mapnik.Image(512,512)
mapnik.render(m,im)
@ -142,7 +142,7 @@ if 'python' in mapnik.DatasourceCache.instance().plugin_names() and have_shapely
def test_python_circle_rendering():
m = mapnik.Map(512,512)
mapnik.load_map(m,'../data/good_maps/python_circle_datasource.xml')
mapnik.load_map(m,'../data/python_plugin/python_circle_datasource.xml')
m.zoom_all()
im = mapnik.Image(512,512)
mapnik.render(m,im)