import asyncio from sqlmodel import create_engine, select, Session import sys sys.path.append('backend') import models DATABASE_URL = "postgresql://pragativeer_admin:local_secure_password_2026@postgres:5432/pragativeer_prod" engine = create_engine(DATABASE_URL) with Session(engine) as session: tests = session.exec(select(models.Test)).all() print(f"Total Tests: {len(tests)}") for t in tests: print(t.id, t.title)