Skip to content
This repository
Browse code

Reenable "name" tests.

Refs #1482.
  • Loading branch information...
commit 60c3c590ed4fa79b18d5a2129058fa90cc9eb6e5 1 parent bbedec3
Hermann Kraus herm authored

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 2 tests/python_tests/object_test.py
  2. +1 1  tests/run_tests.py
4 tests/python_tests/object_test.py
@@ -97,7 +97,7 @@ def test_text_symbolizer():
97 97
98 98 # old args required method
99 99 ts = mapnik.TextSymbolizer(mapnik.Expression('[Field_Name]'), 'Font Name', 8, mapnik.Color('black'))
100   -# eq_(str(ts.name), str(mapnik2.Expression('[Field_Name]'))) name field is no longer supported
  100 + eq_(str(ts.name), str(mapnik.Expression('[Field_Name]')))
101 101 eq_(ts.format.face_name, 'Font Name')
102 102 eq_(ts.format.text_size, 8)
103 103 eq_(ts.format.fill, mapnik.Color('black'))
@@ -112,7 +112,7 @@ def test_shield_symbolizer_init():
112 112 eq_(s.allow_overlap, False)
113 113 eq_(s.avoid_edges, False)
114 114 eq_(s.character_spacing,0)
115   - #eq_(str(s.name), str(mapnik2.Expression('[Field Name]'))) name field is no longer supported
  115 + eq_(str(s.name), str(mapnik.Expression('[Field Name]')))
116 116 eq_(s.face_name, 'DejaVu Sans Bold')
117 117 eq_(s.allow_overlap, False)
118 118 eq_(s.fill, mapnik.Color('#000000'))
2  tests/run_tests.py
@@ -5,7 +5,7 @@
5 5 try:
6 6 import nose
7 7 except ImportError:
8   - 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")
  8 + 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")
9 9 sys.exit(1)
10 10
11 11 from python_tests.utilities import TodoPlugin

0 comments on commit 60c3c59

Please sign in to comment.
Something went wrong with that request. Please try again.