Skip to content

refactor: switch from mock to unittest.mock#34844

Merged
kdmccormick merged 1 commit intoopenedx:masterfrom
kdmccormick:kdmccormick/unittest-mock
May 22, 2024
Merged

refactor: switch from mock to unittest.mock#34844
kdmccormick merged 1 commit intoopenedx:masterfrom
kdmccormick:kdmccormick/unittest-mock

Conversation

@kdmccormick
Copy link
Member

As of Python 3.3, the 3rd-party mock package has been subsumed into the standard unittest.mock package. Refactoring tests to use the latter will allow us to drop mock as a dependency, which is currently coming in transitively through requirements/edx/paver.in.

We don't actually drop the mock dependency in this PR. That will happen naturally in:

As of Python 3.3, the 3rd-party 'mock' package has been subsumed into
the standard 'unittest.mock' package. Refactoring tests to use the
latter will allow us to drop 'mock' as a dependency, which is currently
coming in transitively through paver.in.
@kdmccormick kdmccormick merged commit 1162614 into openedx:master May 22, 2024
@kdmccormick kdmccormick deleted the kdmccormick/unittest-mock branch May 22, 2024 17:52
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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.

3 participants