More fixes for integration tests

This commit is contained in:
Mario de Frutos 2016-05-16 17:51:25 +02:00
parent 0ac00153be
commit 67383efd44

View File

@ -106,7 +106,7 @@ class TestDataObservatoryFunctions(TestCase):
query = "SELECT OBS_GetPopulation(CDB_LatLng(40.704512, -73.936669)) as population;&api_key={0}".format(self.env_variables['api_key']) query = "SELECT OBS_GetPopulation(CDB_LatLng(40.704512, -73.936669)) as population;&api_key={0}".format(self.env_variables['api_key'])
result = IntegrationTestHelper.execute_query(self.sql_api_url, query) result = IntegrationTestHelper.execute_query(self.sql_api_url, query)
assert_not_equal(result['population'], None) assert_not_equal(result['population'], None)
assert_equal(result['population'], 9514.592429469) assert_equal(result['population'], 9514.5924294695)
def test_if_get_population_without_api_key_raise_error(self): def test_if_get_population_without_api_key_raise_error(self):
query = "SELECT OBS_GetPopulation(CDB_LatLng(40.704512, -73.936669));" query = "SELECT OBS_GetPopulation(CDB_LatLng(40.704512, -73.936669));"