TestCenter Reference
TestSupport.Base.MacrosShouldLogOnSuccessDecorator Class Reference

Decorator to globally enable or disable if the ASSERT_*/EXPECT_* macros log an info message on success. More...

Public Member Functions

 __init__ (self, logOnSuccess)
 
 __call__ (self, func)
 

Detailed Description

Decorator to globally enable or disable if the ASSERT_*/EXPECT_* macros log an info message on success.

For example:

@MacrosShouldLogOnSuccessDecorator
def TEST001_TestSomething():
ASSERT_EQ(1,1)

Definition at line 163 of file Base.py.

Constructor & Destructor Documentation

◆ __init__()

TestSupport.Base.MacrosShouldLogOnSuccessDecorator.__init__ (   self,
  logOnSuccess 
)

Member Function Documentation

◆ __call__()

TestSupport.Base.MacrosShouldLogOnSuccessDecorator.__call__ (   self,
  func 
)

The documentation for this class was generated from the following file: