MCPcopy Create free account
hub / github.com/PostHog/duckgres / main

Function main

scripts/client-compat/clients/sqlalchemy/test_sqlalchemy.py:354–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352
353
354def main():
355 wait_for_duckgres()
356
357 rc = ReportClient("sqlalchemy")
358 r = Results(rc)
359 test_connection(r)
360 test_shared_queries(r)
361 test_core_ddl_dml(r)
362 test_orm(r)
363 test_inspection(r)
364 test_raw_params(r)
365
366 print(f"\n{'='*50}")
367 print(f"Results: {r.passed} passed, {r.failed} failed")
368 if r.errors:
369 print("\nFailures:")
370 for name, reason in r.errors:
371 print(f" - {name}: {reason}")
372 print(f"{'='*50}")
373
374 rc.done()
375 sys.exit(1 if r.failed else 0)
376
377
378if __name__ == "__main__":

Callers 1

test_sqlalchemy.pyFile · 0.70

Calls 10

doneMethod · 0.95
ReportClientClass · 0.90
test_connectionFunction · 0.85
test_core_ddl_dmlFunction · 0.85
test_ormFunction · 0.85
test_inspectionFunction · 0.85
test_raw_paramsFunction · 0.85
wait_for_duckgresFunction · 0.70
ResultsClass · 0.70
test_shared_queriesFunction · 0.70

Tested by

no test coverage detected