Experiment with using plpy from the package
This commit is contained in:
parent
2838a0c9fd
commit
f42ff652e1
2
TODO.md
2
TODO.md
@ -1,7 +1,7 @@
|
|||||||
### Complete the structure:
|
### Complete the structure:
|
||||||
|
|
||||||
* [x] Support versioning
|
* [x] Support versioning
|
||||||
* Test use of `plpy` from python Package
|
* [x] Test use of `plpy` from python Package
|
||||||
* Add integration tests
|
* Add integration tests
|
||||||
* Add `pysal` dependency and wrapper
|
* Add `pysal` dependency and wrapper
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import plpy
|
||||||
|
|
||||||
def xyz():
|
def xyz():
|
||||||
# print "XYZ"
|
plpy.notice('XYZ...')
|
||||||
return "xyz-result"
|
return "xyz-result"
|
||||||
|
@ -2,6 +2,13 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
class MockPlPy:
|
||||||
|
def notice(self, msg):
|
||||||
|
print msg
|
||||||
|
|
||||||
|
import sys
|
||||||
|
sys.modules['plpy'] = MockPlPy()
|
||||||
import crankshaft
|
import crankshaft
|
||||||
|
|
||||||
class TestPoc(unittest.TestCase):
|
class TestPoc(unittest.TestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user