test_system_auth.py 305 B

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