Tech Insights· docs.python.org
If you want to mock a class' property method in your tests you should use PropertyMock #unittest.mock.PropertyMock
From docs.python.org
Source code: Lib/unittest/mock.py unittest.mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they hav...
Shared by
- Mock
- Python
- Tests



