import subprocess def test_backup_configuration_is_allow_gated(settings): assert settings.BACKUP_ROOT == "/app/backups" assert settings.BACKUP_VERIFY_ALLOWED is False def test_application_image_installs_matching_postgresql_client(): result = subprocess.run( ["pg_dump", "--version"], check=True, capture_output=True, text=True ) assert result.stdout.startswith("pg_dump (PostgreSQL) 17.")