def _hypothesis_log_random(self, method, kwargs, result): if not (self.__note_method_calls and should_note()): return args, kwargs = convert_kwargs(method, kwargs) argstr = ", ".join( list(map(repr, args)) + [f"{k}={v!r}" for k, v in kwargs.items()]) report(f"{self!r}.{method}({argstr}) -> {result!r}")
def _hypothesis_log_random(self, method, kwargs, result): if not (self.__note_method_calls and should_note()): return args, kwargs = convert_kwargs(method, kwargs) report("%r.%s(%s) -> %r" % ( self, method, ", ".join( list(map(repr, args)) + ["%s=%r" % (k, v) for k, v in kwargs.items()]), result, ))