From 41e68820c57ec99768433362e4eb81ef81bbc2a8 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 25 Sep 2013 13:08:10 -0700 Subject: [PATCH] python: test loading and saving visual test xml files as well --- tests/python_tests/load_map_test.py | 1 + tests/python_tests/save_map_test.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/python_tests/load_map_test.py b/tests/python_tests/load_map_test.py index f440528ff..1772eb093 100644 --- a/tests/python_tests/load_map_test.py +++ b/tests/python_tests/load_map_test.py @@ -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: diff --git a/tests/python_tests/save_map_test.py b/tests/python_tests/save_map_test.py index 099f156b5..227458e19 100644 --- a/tests/python_tests/save_map_test.py +++ b/tests/python_tests/save_map_test.py @@ -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_"))