mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-03 12:44:25 -07:00
fix more tests
This commit is contained in:
parent
461efe61fe
commit
1439274e15
2 changed files with 8 additions and 4 deletions
|
@ -16,6 +16,8 @@ class MockCursor:
|
||||||
self.executed_queries = []
|
self.executed_queries = []
|
||||||
|
|
||||||
def execute(self, query):
|
def execute(self, query):
|
||||||
|
if self.status == "ERROR":
|
||||||
|
raise Exception("Mocked execution error")
|
||||||
self.executed_queries.append(query)
|
self.executed_queries.append(query)
|
||||||
|
|
||||||
def fetchone(self):
|
def fetchone(self):
|
||||||
|
|
|
@ -16,6 +16,8 @@ class MockCursor:
|
||||||
self.executed_queries = []
|
self.executed_queries = []
|
||||||
|
|
||||||
def execute(self, query):
|
def execute(self, query):
|
||||||
|
if self.status == "ERROR":
|
||||||
|
raise Exception("Mocked execution error")
|
||||||
self.executed_queries.append(query)
|
self.executed_queries.append(query)
|
||||||
|
|
||||||
def fetchone(self):
|
def fetchone(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue