Experiment with using plpy from the package
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user