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