mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-06-28 17:33:31 -07:00
c8507e8974
hate_crack.main calls notify.init() at import time with whatever config.json is resolved from the developer's environment (often ~/.hate_crack/config.json). If that file has notify_enabled: true, the per-attack prompt in attacks.py fires input() during tests and trips pytest's capture fd, failing unrelated tests. Add an autouse conftest fixture that clears notify module state before and after every test so the suite is hermetic regardless of local config. Notify-specific tests already use their own clear_state_for_tests() fixture; this change covers the rest. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>