How to Solve NameError: name 'Mock' is not defined -- unittest
Solution: Import the 'Mock' module
# Add the following line to the top of your code
from unittest.mock import Mock
For more information:
unittest Mock
# Add the following line to the top of your code
from unittest.mock import Mock
For more information:
unittest Mock