add to map deprecations tests

This commit is contained in:
Dane Springmeyer 2015-01-09 10:59:18 -08:00
parent 32586c6462
commit bfb0878147
2 changed files with 9 additions and 2 deletions

View file

@ -40,10 +40,10 @@ def test_broken_files():
def test_can_parse_xml_with_deprecated_properties():
default_logging_severity = mapnik.logger.get_severity()
mapnik.logger.set_severity(mapnik.severity_type.None)
broken_files = glob.glob("../data/deprecated_maps/*.xml")
files_with_deprecated_props = glob.glob("../data/deprecated_maps/*.xml")
failures = [];
for filename in broken_files:
for filename in files_with_deprecated_props:
try:
m = mapnik.Map(512, 512)
strict = True

View file

@ -64,6 +64,13 @@ def test_compare_map():
for m in glob.glob("../visual_tests/styles/*.xml"):
compare_map(m)
# TODO - enforce that original xml does not equal first saved xml
def test_compare_map_deprecations():
dep = glob.glob("../data/deprecated_maps/*.xml")
dep = [os.path.normpath(p) for p in dep]
for m in dep:
compare_map(m)
if __name__ == "__main__":
setup()
exit(run_all(eval(x) for x in dir() if x.startswith("test_")))