Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 75)
75.
What is the purpose of the unittest.mock.patch.stopall method in Python testing?
Stops all patches applied with unittest.mock.patch
Stops the execution of all test methods
Stops the execution of a specific test method
Stops all patches applied with unittest.mock.patch.object
Answer: Option
Explanation:
The patch.stopall method in Python's unittest.mock module stops all patches applied with unittest.mock.patch.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.