Integration tests for the data observatory

This commit is contained in:
Mario de Frutos
2016-04-20 12:47:29 +02:00
parent 3c5325c1d7
commit 1daf78e41a
13 changed files with 59 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ RETURNS json AS $$
quota_service = QuotaService(user_data_observatory_config, redis_conn)
if not quota_service.check_user_quota():
plpy.error('You have reach the limit of your quota')
plpy.error('You have reached the limit of your quota')
try:
obs_plan = plpy.prepare("SELECT cdb_observatory.OBS_GetDemographicSnapshot($1, $2, $3) as snapshot;", ["geometry(Geometry, 4326)", "text", "text"])
@@ -53,7 +53,7 @@ RETURNS json AS $$
quota_service = QuotaService(user_data_observatory_config, redis_conn)
if not quota_service.check_user_quota():
plpy.error('You have reach the limit of your quota')
plpy.error('You have reached the limit of your quota')
try:
obs_plan = plpy.prepare("SELECT cdb_observatory.OBS_GetSegmentSnapshot($1, $2) as snapshot;", ["geometry(Geometry, 4326)", "text"])