Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

unmask failing test - refs #1345

  • Loading branch information...
commit 3da72ff8cb6d3ff871c1ef880eb6b771b2a14b08 1 parent 4ad15db
@springmeyer springmeyer authored
View
28 tests/data/json/escaped.json
@@ -0,0 +1,28 @@
+{
+ "type":"FeatureCollection",
+ "features":
+ [
+ {
+ "type":"Feature",
+ "geometry":
+ {
+ "type":"Point",
+ "coordinates":
+ [
+ -81.705583,
+ 41.480573
+ ]
+ },
+ "properties":
+ {
+ "name":"Test",
+ "int":1,
+ "description":"Test: \u005C",
+ "spaces":"this has spaces",
+ "double":1.1,
+ "boolean":true,
+ "NOM_FR":"Québec"
+ }
+ }
+ ]
+}
View
9 tests/python_tests/geojson_plugin_test.py
@@ -43,15 +43,16 @@ def test_geojson_properties():
eq_(f['boolean'], True)
eq_(f['NOM_FR'], u'Qu\xe9bec')
eq_(f['NOM_FR'], u'Québec')
- #eq_(f['description'], u'Test: \u005C')
+ eq_(f['spaces'], u'this has spaces')
+ eq_(f['description'], u'Test: \u005C')
# @raises(RuntimeError)
def test_that_nonexistant_query_field_throws(**kwargs):
ds = mapnik.Datasource(type='geojson',file='../data/json/escaped.json')
- eq_(len(ds.fields()),6)
+ eq_(len(ds.fields()),7)
# 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'])
+ #eq_(ds.fields(),['name', 'int', 'double', 'description', 'boolean', 'NOM_FR'])
+ #eq_(ds.field_types(),['str', 'int', 'float', 'str', 'bool', 'str'])
# TODO - should geojson plugin throw like others?
# query = mapnik.Query(ds.envelope())
# for fld in ds.fields():
Please sign in to comment.
Something went wrong with that request. Please try again.