MCPcopy
hub / github.com/timbrel/GitSavvy / thenReturn

Method thenReturn

tests/mockito/invocation.py:380–383  ·  view source on GitHub ↗
(self, *return_values)

Source from the content-addressed store, hash-verified

378 self.invocation = invocation
379
380 def thenReturn(self, *return_values):
381 for return_value in return_values:
382 self.__then(functools.partial(return_, return_value))
383 return self
384
385 def thenRaise(self, *exceptions):
386 for exception in exceptions:

Calls 1

__thenMethod · 0.95