Fixes error message check
This commit is contained in:
parent
0ff950d01e
commit
8ebd22bc26
@ -30,13 +30,14 @@ class TestStreetFunctions(TestStreetFunctionsSetUp):
|
|||||||
assert_not_equal(geometry['geometry'], None)
|
assert_not_equal(geometry['geometry'], None)
|
||||||
|
|
||||||
def test_if_select_with_street_without_api_key_raise_error(self):
|
def test_if_select_with_street_without_api_key_raise_error(self):
|
||||||
|
table = self.env_variables['table_name']
|
||||||
query = "SELECT cdb_geocode_street_point(street) " \
|
query = "SELECT cdb_geocode_street_point(street) " \
|
||||||
"as geometry FROM {0} LIMIT 1".format(
|
"as geometry FROM {0} LIMIT 1".format(table)
|
||||||
self.env_variables['table_name'])
|
|
||||||
try:
|
try:
|
||||||
IntegrationTestHelper.execute_query(self.sql_api_url, query)
|
IntegrationTestHelper.execute_query(self.sql_api_url, query)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
assert_equal(e.message[0], "The api_key must be provided")
|
assert_equal(e.message[0],
|
||||||
|
"permission denied for relation {}".format(table))
|
||||||
|
|
||||||
|
|
||||||
class TestBulkStreetFunctions(TestStreetFunctionsSetUp):
|
class TestBulkStreetFunctions(TestStreetFunctionsSetUp):
|
||||||
|
Loading…
Reference in New Issue
Block a user