Coverage for app\main.py: 0%
15 statements
« prev ^ index » next coverage.py v7.10.3, created at 2025-09-10 15:53 +0900
« prev ^ index » next coverage.py v7.10.3, created at 2025-09-10 15:53 +0900
1from app.hello import hello
2from app.db import list_tables
5def main() -> int:
6 print(hello())
7 try:
8 tables = list_tables()
9 print("Tables:")
10 for schema, name in tables:
11 print(f"{schema}.{name}")
12 # return success if at least one table found
13 return 0 if len(tables) >= 1 else 2
14 except Exception as e:
15 print("DB error:", e)
16 return 1
19if __name__ == "__main__":
20 raise SystemExit(main())