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:
|
||||
|
||||
* [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
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
import plpy
|
||||
|
||||
def xyz():
|
||||
# print "XYZ"
|
||||
plpy.notice('XYZ...')
|
||||
return "xyz-result"
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user