Files
kevinveenbirkenbachandClaude Opus 5.5 861a727ba0 test: import unittest.mock without an alias next to unittest
CodeQL flagged two test files of PR 2226 with Module is imported with import and import from (alerts on test_covered_rows_are_deployed.py:18 and test_reach.py:6): both import unittest and also import unittest.mock as mock, which CodeQL reads as a from-import. Both now import unittest.mock plainly and call unittest.mock.patch and unittest.mock.Mock, so the module is only ever imported with import. No behaviour change. Tests on the exported PR tree, isolated from other checkouts with python -P: both files plus the repository import lint, 22 passed; ruff check and format clean.

🎯 Fix: 92 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 91
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:18:30 +00:00
..