Skip to content

Comments

Remove external dependency on 'mock'#21

Merged
celiafish merged 1 commit intomasterfrom
unittest-mock
Dec 8, 2025
Merged

Remove external dependency on 'mock'#21
celiafish merged 1 commit intomasterfrom
unittest-mock

Conversation

@padraic-shafer
Copy link

This PR removes an unnecessary external dependency on 'mock'. It now uses unittest.mock instead.

Copilot AI review requested due to automatic review settings December 6, 2025 15:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the external mock dependency in favor of the built-in unittest.mock module, which has been available since Python 3.3. The change reduces external dependencies and modernizes the test infrastructure.

  • Updated tests/python/requirements-dev.txt to remove the mock package
  • Changed the import statement in tests/python/operator_test.py from import mock to from unittest import mock

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/python/requirements-dev.txt Removed the external mock dependency (note: also includes an unrelated commented dm3_lib line)
tests/python/operator_test.py Updated import statement to use unittest.mock instead of the external mock package

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@celiafish celiafish merged commit af97c30 into master Dec 8, 2025
13 checks passed
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.

2 participants