adds mock error function

This commit is contained in:
Andy Eschbacher
2017-01-12 17:12:40 -05:00
parent 04bd067045
commit ddd69bb457

View File

@@ -42,6 +42,9 @@ class MockPlPy:
def info(self, msg):
self.infos.append(msg)
def error(self, msg):
self.notices.append(msg)
def cursor(self, query):
data = self.execute(query)
return MockCursor(data)