MCPcopy Create free account
hub / github.com/apecloud/myduckserver / run_tests

Method run_tests

compatibility/mysql/python/mysql_test.py:57–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 self.tests.append(self.Test(query, expected_results))
56
57 def run_tests(self):
58 for test in self.tests:
59 cursor = None
60 try:
61 cursor = self.conn.cursor()
62 if not test.run(cursor):
63 return False
64 except Exception as e:
65 print(f"Error running test: {e}")
66 return False
67 finally:
68 if cursor:
69 cursor.close()
70 return True
71
72 def read_tests_from_file(self, filename):
73 with open(filename, "r") as file:

Callers 1

mysql_test.pyFile · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected