python: test loading and saving visual test xml files as well

This commit is contained in:
Dane Springmeyer 2013-09-25 13:08:10 -07:00
parent 9e66317af1
commit 41e68820c5
2 changed files with 4 additions and 0 deletions

View file

@ -31,6 +31,7 @@ def test_broken_files():
def test_good_files():
good_files = glob.glob("../data/good_maps/*.xml")
good_files.extend(glob.glob("../visual_tests/styles/*.xml"))
failures = [];
for filename in good_files:

View file

@ -47,6 +47,9 @@ def test_compare_map():
for m in glob.glob("../data/good_maps/*.xml"):
compare_map(m)
for m in glob.glob("../visual_tests/styles/*.xml"):
compare_map(m)
if __name__ == "__main__":
setup()
run_all(eval(x) for x in dir() if x.startswith("test_"))