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

def __init__ (self, logOnSuccess)
 
def __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 132 of file Base.py.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ __call__()

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

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