I want to Mock a method in a Python Test. In order to do this I need MagicMock which I try to import it like this:
from unittest import TestCase
from unittest.mock import MagicMock
Even after I clicked several times on install in PyCharm and although I see magicmock 0.0.3 under Preferences/Project Interpreter, I get this error:
from unittest.mock import MagicMock
ImportError: No module named mock
The import statement I saw here. What do I wrong?