def test_noop_function_with_method_name_arg(self): # not a valid usage scenario, but it should still be tested, as # the original @traced will at least issue a warning func = _traced_noop("method")(sample_function) self._assert_function(func)
def test_noop_function(self): func = _traced_noop(sample_function) self._assert_function(func)
def test_noop_function_with_logger_arg(self): func = _traced_noop(named_tracer)(sample_function) self._assert_function(func)
def test_noop_class_with_method_name_arg(self): class_ = _traced_noop("method")(SampleClass) self._assert_class(class_)
def test_noop_class_with_logger_and_method_name_args(self): class_ = _traced_noop(named_tracer, "method")(SampleClass) self._assert_class(class_)
def test_noop_class(self): class_ = _traced_noop(SampleClass) self._assert_class(class_)
def test_noop_class_with_logger_arg(self): class_ = _traced_noop(named_tracer)(SampleClass) self._assert_class(class_)
def test_noop_function_with_logger_and_method_name_args(self): # not a valid usage scenario, but it should still be tested, as # the original @traced will at least issue a warning func = _traced_noop(named_tracer, "method")(sample_function) self._assert_function(func)
def test_noop_function_with_exclude_keyword(self): class_ = _traced_noop(exclude="method")(SampleClass) self._assert_class(class_)