Experiment with using plpy from the package

This commit is contained in:
Javier Goizueta 2016-02-15 19:58:09 +01:00
parent 2838a0c9fd
commit f42ff652e1
3 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,7 @@
### Complete the structure:
* [x] Support versioning
* Test use of `plpy` from python Package
* [x] Test use of `plpy` from python Package
* Add integration tests
* Add `pysal` dependency and wrapper

View File

@ -1,3 +1,5 @@
import plpy
def xyz():
# print "XYZ"
plpy.notice('XYZ...')
return "xyz-result"

View File

@ -2,6 +2,13 @@
# -*- coding: utf-8 -*-
import unittest
class MockPlPy:
def notice(self, msg):
print msg
import sys
sys.modules['plpy'] = MockPlPy()
import crankshaft
class TestPoc(unittest.TestCase):