Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: switch from mock to unittest.mock #34844

Merged
merged 1 commit into from
May 22, 2024

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
47 checks passed
@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