Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python Mock

Assert A Function/method Was Not Called Using Mock

Answer : This should work for your case; assert not my_var.called, 'method should not have… Read more Assert A Function/method Was Not Called Using Mock