Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 59)
59.
What does the unittest.mock.patch decorator do in Python testing?
Decorates a test method with a patch for a class or object
Skips a test method based on a condition
Marks a test as skipped
Adds a setup function to be run before the test method
Answer: Option
Explanation:
The unittest.mock.patch decorator is used to decorate a test method with a patch for a class or object in Python testing.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.