Use authenticated query for geocoding

This commit is contained in:
manmorjim 2020-03-02 15:27:32 +01:00
parent 2664095e21
commit e99d88500a

View File

@ -151,10 +151,9 @@ class TestStreetFunctions(TestStreetFunctionsSetUp):
query = "SELECT cdb_dataservices_client.cdb_geocode_street_point(street) " \ query = "SELECT cdb_dataservices_client.cdb_geocode_street_point(street) " \
"as geometry FROM {0} LIMIT 1".format(table) "as geometry FROM {0} LIMIT 1".format(table)
try: try:
IntegrationTestHelper.execute_query(self.sql_api_url, query) self._run_authenticated(query)['rows'][0]
except Exception as e: except Exception as e:
assert_equal(e.message[0], assert_equal(e, "permission denied for relation {}".format(table))
"permission denied for relation {}".format(table))
def test_component_aggregation(self): def test_component_aggregation(self):
query = "select st_x(the_geom), st_y(the_geom) from (" \ query = "select st_x(the_geom), st_y(the_geom) from (" \