Merge pull request #181 from CartoDB/179-global_table_zipcode_tests

Using the tables in production
remotes/origin/testing-ci
Carla 9 years ago
commit 267052edd3

@ -15,7 +15,7 @@ function test_geocoding_quality_zipcodes_usa() {
sql "SELECT count(*) FROM available_services where postal_code_polygons is true and adm0_a3 = 'USA'" should 1
#Checks that zipcode points are available
sql "SELECT count(*) FROM available_services where postal_code_points is true and adm0_a3 = 'USA'" should 1
sql "SELECT ST_GeometryType(the_geom) from postal_code_polygons where postal_code = '11211' and adm0_a3 = 'USA'" should ST_MultiPolygon
sql "SELECT ST_GeometryType(the_geom) from global_postal_code_polygons where postal_code = '11211' and iso3 = 'USA'" should ST_MultiPolygon
}
@ -25,7 +25,7 @@ function test_geocoding_quality_zipcodes_fra() {
sql "SELECT count(*) FROM available_services where postal_code_polygons is true and adm0_a3 = 'FRA'" should 1
#Checks that zipcode points are available
sql "SELECT count(*) FROM available_services where postal_code_points is true and adm0_a3 = 'FRA'" should 1
sql "SELECT ST_GeometryType(the_geom) from postal_code_polygons where postal_code = '23270' and adm0_a3 = 'FRA'" should ST_MultiPolygon
sql "SELECT ST_GeometryType(the_geom) from global_postal_code_polygons where postal_code = '23270' and iso3 = 'FRA'" should ST_MultiPolygon
}
function test_geocoding_quality_zipcodes_can() {
@ -33,7 +33,7 @@ function test_geocoding_quality_zipcodes_can() {
sql "SELECT count(*) FROM available_services where postal_code_polygons is true and adm0_a3 = 'CAN'" should 1
#Checks that zipcode points are available
sql "SELECT count(*) FROM available_services where postal_code_points is true and adm0_a3 = 'CAN'" should 1
sql "SELECT ST_GeometryType(the_geom) from postal_code_polygons where postal_code = 'A0J' and adm0_a3 = 'CAN'" should ST_MultiPolygon
sql "SELECT ST_GeometryType(the_geom) from global_postal_code_polygons where postal_code = 'A0J' and iso3 = 'CAN'" should ST_MultiPolygon
}
@ -42,7 +42,7 @@ function test_geocoding_quality_zipcodes_aus() {
sql "SELECT count(*) FROM available_services where postal_code_polygons is true and adm0_a3 = 'AUS'" should 1
#Checks that zipcode points are available
sql "SELECT count(*) FROM available_services where postal_code_points is true and adm0_a3 = 'AUS'" should 1
sql "SELECT ST_GeometryType(the_geom) from postal_code_polygons where postal_code = '3012' and adm0_a3 = 'AUS'" should ST_MultiPolygon
sql "SELECT ST_GeometryType(the_geom) from global_postal_code_polygons where postal_code = '3012' and iso3 = 'AUS'" should ST_MultiPolygon
}

Loading…
Cancel
Save