parent
bbedec3437
commit
60c3c590ed
2 changed files with 3 additions and 3 deletions
|
@ -97,7 +97,7 @@ def test_text_symbolizer():
|
|||
|
||||
# old args required method
|
||||
ts = mapnik.TextSymbolizer(mapnik.Expression('[Field_Name]'), 'Font Name', 8, mapnik.Color('black'))
|
||||
# eq_(str(ts.name), str(mapnik2.Expression('[Field_Name]'))) name field is no longer supported
|
||||
eq_(str(ts.name), str(mapnik.Expression('[Field_Name]')))
|
||||
eq_(ts.format.face_name, 'Font Name')
|
||||
eq_(ts.format.text_size, 8)
|
||||
eq_(ts.format.fill, mapnik.Color('black'))
|
||||
|
@ -112,7 +112,7 @@ def test_shield_symbolizer_init():
|
|||
eq_(s.allow_overlap, False)
|
||||
eq_(s.avoid_edges, False)
|
||||
eq_(s.character_spacing,0)
|
||||
#eq_(str(s.name), str(mapnik2.Expression('[Field Name]'))) name field is no longer supported
|
||||
eq_(str(s.name), str(mapnik.Expression('[Field Name]')))
|
||||
eq_(s.face_name, 'DejaVu Sans Bold')
|
||||
eq_(s.allow_overlap, False)
|
||||
eq_(s.fill, mapnik.Color('#000000'))
|
||||
|
|
|
@ -5,7 +5,7 @@ import sys
|
|||
try:
|
||||
import nose
|
||||
except ImportError:
|
||||
sys.stderr.write("Unable to run python tests: the third party 'nose' module is required\nTo install 'nose' do:\n\tsudo pip install nose (or on debian systems: apt-get install python-nose\n")
|
||||
sys.stderr.write("Unable to run python tests: the third party 'nose' module is required\nTo install 'nose' do:\n\tsudo pip install nose (or on debian systems: apt-get install python-nose)\n")
|
||||
sys.exit(1)
|
||||
|
||||
from python_tests.utilities import TodoPlugin
|
||||
|
|
Loading…
Add table
Reference in a new issue