From f91c540bc37b007fb54015f2b411df1dc087c479 Mon Sep 17 00:00:00 2001 From: Andy Eschbacher Date: Thu, 14 Apr 2016 10:30:56 -0400 Subject: [PATCH] adding fixture processing scripts to test --- src/pg/test/sql/40_observatory_utility_test.sql | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pg/test/sql/40_observatory_utility_test.sql b/src/pg/test/sql/40_observatory_utility_test.sql index 683e932..edf7957 100644 --- a/src/pg/test/sql/40_observatory_utility_test.sql +++ b/src/pg/test/sql/40_observatory_utility_test.sql @@ -1,8 +1,11 @@ SELECT set_config( 'search_path', - current_setting('search_path') || ',cdb_observatory', + current_setting('search_path') || ',cdb_observatory,observatory', false -) WHERE current_setting('search_path') !~ '(^|,)cdb_observatory(,|$)'; +) WHERE current_setting('search_path') !~ '(^|,)(cdb_observatory|observatory)(,|$)'; + +\i test/sql/02_load_fixtures.sql + -- OBS_GeomTable -- get table with known geometry_id @@ -48,3 +51,5 @@ SELECT cdb_observatory.OBS_BuildSnapshotQuery( Array['total_pop','male_pop','female_pop','median_age'] ); + +\i test/sql/03_drop_fixtures.sql \ No newline at end of file