from pathlib import Path def test_system_auth_imports_psycopg2_pool_submodule(): auth_path = Path(__file__).resolve().parents[1] / "app/core/system/auth.py" assert "import psycopg2.pool" in auth_path.read_text(encoding="utf-8")