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

Method run_tests

compatibility/pg/python/pg_test.py:59–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

pg_test.pyFile · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected