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 )

Definition at line 164 of file Base.py.

References __logOnSuccess.

Member Function Documentation

◆ __call__()

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

Definition at line 167 of file Base.py.

References __logOnSuccess, and TestSupport.Base.setMacrosShouldLogOnSuccess().


The documentation for this class was generated from the following file:
  • MeVisLab/Standard/Modules/Scripts/python/TestSupport/Base.py