From 8faf04663c445c53aacdce87922df78fc12aed6a Mon Sep 17 00:00:00 2001 From: artemp Date: Wed, 4 Feb 2015 18:34:53 +0100 Subject: [PATCH] update tests/python_tests/geojson_plugin_test.py --- tests/python_tests/geojson_plugin_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/python_tests/geojson_plugin_test.py b/tests/python_tests/geojson_plugin_test.py index a23667417..6609f082d 100644 --- a/tests/python_tests/geojson_plugin_test.py +++ b/tests/python_tests/geojson_plugin_test.py @@ -23,7 +23,7 @@ if 'geojson' in mapnik.DatasourceCache.plugin_names(): def test_geojson_properties(): ds = mapnik.Datasource(type='geojson',file='../data/json/escaped.geojson') f = ds.features_at_point(ds.envelope().center()).features[0] - eq_(len(ds.fields()),7) + eq_(len(ds.fields()),9) desc = ds.describe() eq_(desc['geometry_type'],mapnik.DataGeometryType.Point) @@ -38,7 +38,7 @@ if 'geojson' in mapnik.DatasourceCache.plugin_names(): ds = mapnik.Datasource(type='geojson',file='../data/json/escaped.geojson') f = ds.all_features()[0] - eq_(len(ds.fields()),7) + eq_(len(ds.fields()),9) desc = ds.describe() eq_(desc['geometry_type'],mapnik.DataGeometryType.Point) @@ -66,7 +66,7 @@ if 'geojson' in mapnik.DatasourceCache.plugin_names(): # @raises(RuntimeError) def test_that_nonexistant_query_field_throws(**kwargs): ds = mapnik.Datasource(type='geojson',file='../data/json/escaped.geojson') - eq_(len(ds.fields()),7) + eq_(len(ds.fields()),9) # TODO - this sorting is messed up #eq_(ds.fields(),['name', 'int', 'double', 'description', 'boolean', 'NOM_FR']) #eq_(ds.field_types(),['str', 'int', 'float', 'str', 'bool', 'str'])