Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 26)
26.
What is the purpose of the unittest.mock.side_effect attribute?
Checks if a function or method has been called
Represents the call arguments of a function or method
Mocks the behavior of a function or method
Defines the return values of a function or method
Answer: Option
Explanation:
The unittest.mock.side_effect attribute is used to define the behavior (side effect) of a function or method in Python unittest.mock.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.