From 9022cf8a6812f2b7aa6068dc32c71d8233d921ae Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 11 Nov 2011 17:03:56 -0800 Subject: [PATCH] tests: warn if no datasources are found --- tests/python_tests/datasource_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/python_tests/datasource_test.py b/tests/python_tests/datasource_test.py index 12ded0e84..5ec755d56 100644 --- a/tests/python_tests/datasource_test.py +++ b/tests/python_tests/datasource_test.py @@ -9,6 +9,10 @@ def setup(): # All of the paths used are relative, if we run the tests # from another directory we need to chdir() os.chdir(execution_path('.')) + +def test_that_datasources_exist(): + if len(mapnik2.DatasourceCache.instance().plugin_names()) == 0: + print '***NOTICE*** - no datasource plugins have been loaded' def test_field_listing(): lyr = mapnik2.Layer('test')