From 45ae255223bc7ab09fc3f08488e5ee145a0adbee Mon Sep 17 00:00:00 2001 From: John Krauss Date: Tue, 24 May 2016 12:51:55 +0000 Subject: [PATCH] update es.ine expectations and tests --- src/pg/test/expected/42_observatory_exploration_test.out | 2 +- src/pg/test/sql/40_observatory_utility_test.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pg/test/expected/42_observatory_exploration_test.out b/src/pg/test/expected/42_observatory_exploration_test.out index d53e5b5..6a9f83b 100644 --- a/src/pg/test/expected/42_observatory_exploration_test.out +++ b/src/pg/test/expected/42_observatory_exploration_test.out @@ -9,7 +9,7 @@ t (1 row) id|description|name|aggregate|source us.census.acs.B01003001_quantile|The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.|Quantile:Total Population|quantile| -es.ine.total_pop|The total number of all people living in a geographic area.|Total Population|sum| +es.ine.t1_1||Total population|sum| us.census.acs.B01003001|The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.|Total Population|sum| us.census.acs.B19301001|Per capita income is the mean income computed for every man, woman, and child in a particular group. It is derived by dividing the total income of a particular group by the total population.|Per Capita Income in the past 12 Months|average| us.census.acs.B01001001_quantile|The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.|Quantile:Total Population|quantile| diff --git a/src/pg/test/sql/40_observatory_utility_test.sql b/src/pg/test/sql/40_observatory_utility_test.sql index 162162c..45cdb96 100644 --- a/src/pg/test/sql/40_observatory_utility_test.sql +++ b/src/pg/test/sql/40_observatory_utility_test.sql @@ -65,12 +65,12 @@ SELECT SELECT cdb_observatory._OBS_GetRelatedColumn( Array[ - 'es.ine.pop_0_4', + 'es.ine.t3_1', 'us.census.acs.B01003001', 'us.census.acs.B01001002' ], 'denominator' - ) = '{es.ine.total_pop,NULL,us.census.acs.B01003001}' As _OBS_GetRelatedColumn_test; + ) = '{es.ine.t1_1,NULL,us.census.acs.B01003001}' As _OBS_GetRelatedColumn_test; -- should give back a standardized measure name SELECT cdb_observatory._OBS_StandardizeMeasureName('test 343 %% 2 qqq }}{{}}') = 'test_343_2_qqq' As _OBS_StandardizeMeasureName_test;