[vdsm] Using the mock object library (replacing MonkeyPatch)

5 Apr
2016
5 Apr
'16
10:01 a.m.
Hi All, I would like to propose using the standard mock object library in the VDSM project. In python3, mock has been added to the standard library (unittest.mock) and in previous version it can be used by installing its equivalent stand alone package (available in el7). It has some powerful mocking capabilities, covering usages of MonkeyPatch with a lot more abilities. Two patches have been posted for review, one introducing mock with a simple usage and a second one demonstrating how it can replace current MockeyPatch tests: https://gerrit.ovirt.org/#/c/55342 https://gerrit.ovirt.org/#/c/55603 Thanks, Edy.
3416
Age (days ago)
3416
Last active (days ago)
0 comments
1 participants
participants (1)
-
Edward Haas