Merge pull request #191 from CartoDB/master
Fix integration tests for waypoints
This commit is contained in:
commit
6b7e67304a
@ -35,7 +35,7 @@ class TestRoutingFunctions(TestCase):
|
||||
|
||||
def test_if_select_with_routing_with_waypoints_is_ok(self):
|
||||
query = "SELECT duration, length, shape as the_geom " \
|
||||
"FROM cdb_route_with_waypoints('Array['POINT(-3.7109 40.4234)'::GEOMETRY, "\
|
||||
"FROM cdb_route_with_waypoints(Array['POINT(-3.7109 40.4234)'::GEOMETRY, "\
|
||||
"'POINT(-3.7059 40.4203)'::geometry, 'POINT(-3.7046 40.4180)'::geometry]" \
|
||||
"::geometry[], 'car', " \
|
||||
"ARRAY['mode_type=shortest']::text[])&api_key={0}".format(
|
||||
@ -45,7 +45,7 @@ class TestRoutingFunctions(TestCase):
|
||||
|
||||
def test_if_select_with_routing_with_waypoints_without_api_key_raise_error(self):
|
||||
query = "SELECT duration, length, shape as the_geom " \
|
||||
"FROM cdb_route_with_waypoints('Array['POINT(-3.7109 40.4234)'::GEOMETRY, "\
|
||||
"FROM cdb_route_with_waypoints(Array['POINT(-3.7109 40.4234)'::GEOMETRY, "\
|
||||
"'POINT(-3.7059 40.4203)'::geometry, 'POINT(-3.7046 40.4180)'::geometry]" \
|
||||
"::geometry[], 'car', " \
|
||||
"ARRAY['mode_type=shortest']::text[])&api_key={0}"
|
||||
|
Loading…
Reference in New Issue
Block a user