Fix the tests

This commit is contained in:
Javier Goizueta
2016-02-17 11:46:29 +01:00
parent 43aa7ac977
commit 3ded7da1d8
10 changed files with 33 additions and 9 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
test/regression.diffs
test/regression.out
regression.diffs
regression.out
test/results
+2 -2
View File
@@ -17,6 +17,6 @@ RETURNS TABLE (
)
AS $$
from crankshaft.clustering import moran_local
-- TODO: use named parameters or a dictionary
# TODO: use named parameters or a dictionary
return moran_local(t, attr, significance, num_ngbrs, permutations, geom_column, id_col, w_type)
$$ LANGUAGE plpython2u;
$$ LANGUAGE plpythonu;
@@ -1,4 +1,5 @@
-- Install dependencies
CREATE EXTENSION plpythonu;
CREATE EXTENSION postgis;
-- Install the extension
CREATE EXTENSION crankshaft;
+3 -1
View File
@@ -1,6 +1,8 @@
SELECT cdb_crankshaft.cdb_poc_xyz();
NOTICE: XYZ...
CONTEXT: PL/Python function "cdb_poc_xyz"
cdb_poc_xyz
-------------
xyz-result
83
(1 row)
@@ -1,4 +1,5 @@
-- Install dependencies
CREATE EXTENSION plpythonu;
CREATE EXTENSION postgis;
-- Install the extension
CREATE EXTENSION crankshaft;
+3 -1
View File
@@ -1,6 +1,8 @@
SELECT cdb_crankshaft.cdb_poc_xyz();
NOTICE: XYZ...
CONTEXT: PL/Python function "cdb_poc_xyz"
cdb_poc_xyz
-------------
xyz-result
83
(1 row)
+1
View File
@@ -1,5 +1,6 @@
-- Install dependencies
CREATE EXTENSION plpythonu;
CREATE EXTENSION postgis;
-- Install the extension
CREATE EXTENSION crankshaft;