Replace mock
with unittest.mock
#1207
Labels
good first issue
A good task for a newcomer to start with
help wanted
Ready to be picked up by anyone in the community
As of Python 3.3, unittest.mock is a drop-in replacement for mock. For example: openedx/edx-platform#34844
This package uses
mock
, but is not declaring it as a base dependency, which is causing an error when we removemock
from edx-platform:The fix is to simply replace occurances of
from mock import ...
withfrom unittest.mock import ...
The text was updated successfully, but these errors were encountered: