Add a silly test to the extension
This commit is contained in:
1
geocoder/admin0/extension/.gitignore
vendored
Normal file
1
geocoder/admin0/extension/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
results/
|
||||
@@ -1,5 +1,6 @@
|
||||
EXTENSION = cdb_geocoder_admin0
|
||||
DATA = cdb_geocoder_admin0--0.0.1.sql
|
||||
REGRESS = cdb_geocoder_admin0_test
|
||||
|
||||
# postgres build stuff
|
||||
PG_CONFIG = pg_config
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
CREATE EXTENSION postgis;
|
||||
CREATE EXTENSION schema_triggers;
|
||||
CREATE EXTENSION plpythonu;
|
||||
CREATE EXTENSION cartodb;
|
||||
CREATE EXTENSION cdb_geocoder_admin0;
|
||||
-- Check that the synonym function is callable, should return NULL
|
||||
SELECT (admin0_synonym_lookup(Array['United States', 'ESP'])).*;
|
||||
q | adm0_a3
|
||||
---------------+---------
|
||||
United States |
|
||||
ESP |
|
||||
(2 rows)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
CREATE EXTENSION postgis;
|
||||
CREATE EXTENSION schema_triggers;
|
||||
CREATE EXTENSION plpythonu;
|
||||
CREATE EXTENSION cartodb;
|
||||
CREATE EXTENSION cdb_geocoder_admin0;
|
||||
|
||||
-- Check that the synonym function is callable, should return NULL
|
||||
SELECT (admin0_synonym_lookup(Array['United States', 'ESP'])).*;
|
||||
Reference in New Issue
Block a user