Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 16)
16.
What does the Python unittest.mock.patch decorator do?
Decorates a test method with a patch
Simulates the behavior of real objects in a controlled way
Skips a test method
Marks a test as skipped
Answer: Option
Explanation:
The unittest.mock.patch decorator in Python is used to decorate a test method with a patch for mocking.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.