Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 37)
37.
What is the purpose of the unittest.mock.patch.dict decorator?
Decorates a test method with a patch for a dictionary
Skips a test method based on a condition
Creates a magical mock object for all methods of a dictionary
Marks a test as skipped
Answer: Option
Explanation:
The unittest.mock.patch.dict decorator is used to decorate a test method with a patch for a dictionary in Python.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.