Fixture to fulfill the tests needs

This commit is contained in:
Mario de Frutos
2015-12-06 14:53:17 +01:00
parent 4ca82f01a8
commit 26174dda22
2 changed files with 5 additions and 267 deletions

View File

@@ -15,7 +15,7 @@ class TestAdmin0Functions(TestCase):
)
def test_if_select_with_admin0_is_ok(self):
query = "SELECT cdb_geocode_admin0_polygon(name) as geometry " \
query = "SELECT cdb_geocode_admin0_polygon(country) as geometry " \
"FROM {0} LIMIT 1&api_key={1}".format(
self.env_variables['table_name'],
self.env_variables['api_key'])
@@ -23,7 +23,7 @@ class TestAdmin0Functions(TestCase):
assert_not_equal(geometry, None)
def test_if_select_with_admin0_without_api_key_raise_error(self):
query = "SELECT cdb_geocode_admin0_polygon(name) as geometry " \
query = "SELECT cdb_geocode_admin0_polygon(country) as geometry " \
"FROM {0} LIMIT 1".format(
self.env_variables['table_name'])
try: