mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
Fix some tests.
This commit is contained in:
parent
a1c80d1a4c
commit
047cda5d1b
@ -14,4 +14,4 @@
|
||||
<PointSymbolizer file="../data/images/also.png"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
</Map>
|
||||
</Map>
|
||||
|
||||
@ -33,4 +33,4 @@
|
||||
</Datasource>
|
||||
</Layer>
|
||||
|
||||
</Map>
|
||||
</Map>
|
||||
|
||||
@ -22,4 +22,4 @@
|
||||
<Parameter name="type">shape</Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
</Map>
|
||||
</Map>
|
||||
|
||||
@ -29,7 +29,7 @@ def test_shieldsymbolizer_init():
|
||||
eq_(s.allow_overlap, False)
|
||||
eq_(s.avoid_edges, False)
|
||||
eq_(s.character_spacing,0)
|
||||
eq_(str(s.name), str(mapnik.Expression('[Field Name]')))
|
||||
#eq_(str(s.name), str(mapnik2.Expression('[Field Name]'))) name field is no longer supported
|
||||
eq_(s.face_name, 'DejaVu Sans Bold')
|
||||
eq_(s.allow_overlap, False)
|
||||
eq_(s.fill, mapnik.Color('#000000'))
|
||||
@ -198,7 +198,7 @@ def test_linesymbolizer_init():
|
||||
def test_textsymbolizer_init():
|
||||
ts = mapnik.TextSymbolizer(mapnik.Expression('[Field_Name]'), 'Font Name', 8, mapnik.Color('black'))
|
||||
|
||||
eq_(str(ts.name), str(mapnik.Expression('[Field_Name]')))
|
||||
# eq_(str(ts.name), str(mapnik2.Expression('[Field_Name]'))) name field is no longer supported
|
||||
eq_(ts.face_name, 'Font Name')
|
||||
eq_(ts.text_size, 8)
|
||||
eq_(ts.fill, mapnik.Color('black'))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user