Fix encoding of missing fields

This commit is contained in:
Juan Ignacio Sánchez Lara
2018-07-06 15:52:10 +02:00
parent d00a48f16e
commit 6da70fd8ea
2 changed files with 8 additions and 1 deletions

View File

@@ -233,6 +233,13 @@ class TestBulkStreetFunctions(TestStreetFunctionsSetUp):
response = self._run_authenticated(query)
assert_equal(n - 1, len(response['rows']))
def test_missing_components_on_private_function(self):
query = "SELECT _cdb_bulk_geocode_street_point(" \
" '[{\"id\": \"1\", \"address\": \"Amphitheatre Parkway 22\"}]' " \
")"
response = self._run_authenticated(query)
assert_equal(1, len(response['rows']))
def _run_authenticated(self, query):
authenticated_query = "{}&api_key={}".format(query,
self.env_variables[