From 6d0ab4480086a20d6c19e0c9ca5df944be3c1a23 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 9 Jan 2015 23:16:31 +0100 Subject: [PATCH] reuse template db for tests by default --- tests/steps/terrain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/steps/terrain.py b/tests/steps/terrain.py index cfd243db..746485ac 100644 --- a/tests/steps/terrain.py +++ b/tests/steps/terrain.py @@ -27,7 +27,7 @@ class NominatimConfig: self.template_db = os.environ.get('TEMPLATE_DB', 'test_template_nominatim') self.test_db = os.environ.get('TEST_DB', 'test_nominatim') self.local_settings_file = os.environ.get('NOMINATIM_SETTINGS', '/tmp/nominatim_settings.php') - self.reuse_template = 'NOMINATIM_REUSE_TEMPLATE' in os.environ + self.reuse_template = 'NOMINATIM_REMOVE_TEMPLATE' not in os.environ self.keep_scenario_db = 'NOMINATIM_KEEP_SCENARIO_DB' in os.environ os.environ['NOMINATIM_SETTINGS'] = '/tmp/nominatim_settings.php' -- 2.39.5