Skip to content

chore(deps): replace standalone mock with unittest.mock#652

Merged
LaikaN57 merged 1 commit intomainfrom
chore/replace-import-mock
Feb 25, 2026
Merged

chore(deps): replace standalone mock with unittest.mock#652
LaikaN57 merged 1 commit intomainfrom
chore/replace-import-mock

Conversation

@LaikaN57
Copy link
Member

Summary

  • The mock package (v5.2.0) is a Python 2 backport of unittest.mock — unnecessary since kingpin requires Python 3.11+
  • 9 test files updated: import mockfrom unittest import mock (via uvx ruff check --select UP026 --fix)
  • mock removed from [dependency-groups] dev
  • All 361 tests pass, 100% coverage
  • 2 files (test_deploy.py, test_api_call_queue.py) were already migrated in refactor(actors): modernize Python idioms and remove Python 2 remnants #651

Test plan

  • make lint passes
  • make test — 361 passed, 100% coverage
  • CI validates

🤖 Generated with Claude Code

The `mock` package (v5.2.0) is a Python 2 backport of `unittest.mock`,
unnecessary since kingpin requires Python 3.11+.

- 9 test files: `import mock` → `from unittest import mock`
- Removed `mock` from `[dependency-groups] dev` in pyproject.toml
- All 361 tests pass, 100% coverage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LaikaN57 LaikaN57 marked this pull request as ready for review February 25, 2026 20:03
@LaikaN57 LaikaN57 merged commit 654c157 into main Feb 25, 2026
5 checks passed
@LaikaN57 LaikaN57 deleted the chore/replace-import-mock branch February 25, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant