Example #1
0
 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)
Example #2
0
 def test_noop_function(self):
     func = _traced_noop(sample_function)
     self._assert_function(func)
Example #3
0
 def test_noop_function_with_logger_arg(self):
     func = _traced_noop(named_tracer)(sample_function)
     self._assert_function(func)
Example #4
0
 def test_noop_class_with_method_name_arg(self):
     class_ = _traced_noop("method")(SampleClass)
     self._assert_class(class_)
Example #5
0
 def test_noop_class_with_logger_and_method_name_args(self):
     class_ = _traced_noop(named_tracer, "method")(SampleClass)
     self._assert_class(class_)
Example #6
0
 def test_noop_class(self):
     class_ = _traced_noop(SampleClass)
     self._assert_class(class_)
Example #7
0
 def test_noop_class_with_logger_arg(self):
     class_ = _traced_noop(named_tracer)(SampleClass)
     self._assert_class(class_)
Example #8
0
 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)
Example #9
0
 def test_noop_function_with_exclude_keyword(self):
     class_ = _traced_noop(exclude="method")(SampleClass)
     self._assert_class(class_)
Example #10
0
 def test_noop_function(self):
     func = _traced_noop(sample_function)
     self._assert_function(func)
Example #11
0
 def test_noop_function_with_logger_arg(self):
     func = _traced_noop(named_tracer)(sample_function)
     self._assert_function(func)
Example #12
0
 def test_noop_class_with_logger_and_method_name_args(self):
     class_ = _traced_noop(named_tracer, "method")(SampleClass)
     self._assert_class(class_)
Example #13
0
 def test_noop_class_with_method_name_arg(self):
     class_ = _traced_noop("method")(SampleClass)
     self._assert_class(class_)
Example #14
0
 def test_noop_class_with_logger_arg(self):
     class_ = _traced_noop(named_tracer)(SampleClass)
     self._assert_class(class_)
Example #15
0
 def test_noop_class(self):
     class_ = _traced_noop(SampleClass)
     self._assert_class(class_)
 def test_noop_function_with_exclude_keyword(self):
     class_ = _traced_noop(exclude="method")(SampleClass)
     self._assert_class(class_)