Adds data tests
This commit is contained in:
@@ -15,6 +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
|
sql "SELECT count(*) FROM available_services where postal_code_polygons is true and adm0_a3 = 'USA'" should 1
|
||||||
#Checks that zipcode points are available
|
#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 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
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -24,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
|
sql "SELECT count(*) FROM available_services where postal_code_polygons is true and adm0_a3 = 'FRA'" should 1
|
||||||
#Checks that zipcode points are available
|
#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 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
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_geocoding_quality_zipcodes_can() {
|
function test_geocoding_quality_zipcodes_can() {
|
||||||
@@ -32,6 +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
|
sql "SELECT count(*) FROM available_services where postal_code_polygons is true and adm0_a3 = 'CAN'" should 1
|
||||||
#Checks that zipcode points are available
|
#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 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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,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
|
sql "SELECT count(*) FROM available_services where postal_code_polygons is true and adm0_a3 = 'AUS'" should 1
|
||||||
#Checks that zipcode points are available
|
#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 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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user