fix tests to match fixture data
This commit is contained in:
parent
090a1add43
commit
a2e84696dc
@ -401,17 +401,17 @@ AS obs_getmeta_conflicting_metadata;
|
|||||||
-- OBS_GetMeta provides suggested name for simple meta request
|
-- OBS_GetMeta provides suggested name for simple meta request
|
||||||
SELECT cdb_observatory.OBS_GetMeta(cdb_observatory._TestPoint(),
|
SELECT cdb_observatory.OBS_GetMeta(cdb_observatory._TestPoint(),
|
||||||
'[{"numer_id": "us.census.acs.B01003001"}]'
|
'[{"numer_id": "us.census.acs.B01003001"}]'
|
||||||
)->0->>'suggested_name' = 'total_pop_2011_2015' obs_getmeta_suggested_name;
|
)->0->>'suggested_name' = 'total_pop_2010_2014' obs_getmeta_suggested_name;
|
||||||
|
|
||||||
-- OBS_GetMeta provides suggested name for simple meta request with area norm
|
-- OBS_GetMeta provides suggested name for simple meta request with area norm
|
||||||
SELECT cdb_observatory.OBS_GetMeta(cdb_observatory._TestPoint(),
|
SELECT cdb_observatory.OBS_GetMeta(cdb_observatory._TestPoint(),
|
||||||
'[{"numer_id": "us.census.acs.B01003001", "normalization": "area"}]'
|
'[{"numer_id": "us.census.acs.B01003001", "normalization": "area"}]'
|
||||||
)->0->>'suggested_name' = 'total_pop_per_sq_km_2011_2015' obs_getmeta_suggested_name_area;
|
)->0->>'suggested_name' = 'total_pop_per_sq_km_2010_2014' obs_getmeta_suggested_name_area;
|
||||||
|
|
||||||
-- OBS_GetMeta provides suggested name for simple meta request with denom
|
-- OBS_GetMeta provides suggested name for simple meta request with denom
|
||||||
SELECT cdb_observatory.OBS_GetMeta(cdb_observatory._TestPoint(),
|
SELECT cdb_observatory.OBS_GetMeta(cdb_observatory._TestPoint(),
|
||||||
'[{"numer_id": "us.census.acs.B01001002", "normalization": "denom"}]'
|
'[{"numer_id": "us.census.acs.B01001002", "normalization": "denom"}]'
|
||||||
)->0->>'suggested_name' = 'male_pop_rate_2011_2015' obs_getmeta_suggested_name_denom;
|
)->0->>'suggested_name' = 'male_pop_rate_2010_2014' obs_getmeta_suggested_name_denom;
|
||||||
|
|
||||||
-- OBS_GetData/OBS_GetMeta by id with empty list/null
|
-- OBS_GetData/OBS_GetMeta by id with empty list/null
|
||||||
WITH data AS (SELECT * FROM cdb_observatory.OBS_GetData(ARRAY[]::TEXT[], null))
|
WITH data AS (SELECT * FROM cdb_observatory.OBS_GetData(ARRAY[]::TEXT[], null))
|
||||||
|
Loading…
Reference in New Issue
Block a user