Use start and stop methods of patch in scenario

This ensure that the modification on the object are removed at the end of the
scenario.

issue10422
review332891002
This commit is contained in:
Cédric Krier
2021-05-15 09:22:28 +02:00
parent 7a11f76cec
commit ebbb533eb5
+1
View File
@@ -901,6 +901,7 @@ def doctest_setup(test):
def doctest_teardown(test):
unittest.mock.patch.stopall()
return drop_db()