The Gaudi Framework  v37r1 (a7f61348)
GaudiTesting.BaseTest.Result Class Reference

Public Member Functions

def __init__ (self, kind=None, id=None, outcome=PASS, annotations={})
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def Quote (self, text)
 

Public Attributes

 annotations
 

Static Public Attributes

 PASS
 
 FAIL
 
 ERROR
 
 UNTESTED
 
 EXCEPTION
 
 RESOURCE
 
 TARGET
 
 TRACEBACK
 
 START_TIME
 
 END_TIME
 
 TIMEOUT_DETAIL
 

Detailed Description

Definition at line 774 of file BaseTest.py.

Constructor & Destructor Documentation

◆ __init__()

def GaudiTesting.BaseTest.Result.__init__ (   self,
  kind = None,
  id = None,
  outcome = PASS,
  annotations = {} 
)

Definition at line 788 of file BaseTest.py.

788  def __init__(self, kind=None, id=None, outcome=PASS, annotations={}):
789  self.annotations = annotations.copy()
790 

Member Function Documentation

◆ __getitem__()

def GaudiTesting.BaseTest.Result.__getitem__ (   self,
  key 
)

Definition at line 791 of file BaseTest.py.

791  def __getitem__(self, key):
792  assert isinstance(key, six.string_types)
793  return self.annotations[key]
794 

◆ __setitem__()

def GaudiTesting.BaseTest.Result.__setitem__ (   self,
  key,
  value 
)

Definition at line 795 of file BaseTest.py.

795  def __setitem__(self, key, value):
796  assert isinstance(key, six.string_types)
797  assert isinstance(value, six.string_types), "{!r} is not a string".format(value)
798  self.annotations[key] = value
799 

◆ Quote()

def GaudiTesting.BaseTest.Result.Quote (   self,
  text 
)
Convert text to html by escaping special chars and adding <pre> tags.

Definition at line 800 of file BaseTest.py.

800  def Quote(self, text):
801  """
802  Convert text to html by escaping special chars and adding <pre> tags.
803  """
804  return "<pre>{}</pre>".format(escape_for_html(text))
805 
806 
807 # -------------------------------------------------------------------------#
808 # --------------------------- Validator Classes ---------------------------#
809 # -------------------------------------------------------------------------#
810 
811 # Basic implementation of an option validator for Gaudi test. This
812 # implementation is based on the standard (LCG) validation functions used
813 # in QMTest.
814 
815 

Member Data Documentation

◆ annotations

GaudiTesting.BaseTest.Result.annotations

Definition at line 789 of file BaseTest.py.

◆ END_TIME

GaudiTesting.BaseTest.Result.END_TIME
static

Definition at line 785 of file BaseTest.py.

◆ ERROR

GaudiTesting.BaseTest.Result.ERROR
static

Definition at line 777 of file BaseTest.py.

◆ EXCEPTION

GaudiTesting.BaseTest.Result.EXCEPTION
static

Definition at line 780 of file BaseTest.py.

◆ FAIL

GaudiTesting.BaseTest.Result.FAIL
static

Definition at line 776 of file BaseTest.py.

◆ PASS

GaudiTesting.BaseTest.Result.PASS
static

Definition at line 775 of file BaseTest.py.

◆ RESOURCE

GaudiTesting.BaseTest.Result.RESOURCE
static

Definition at line 781 of file BaseTest.py.

◆ START_TIME

GaudiTesting.BaseTest.Result.START_TIME
static

Definition at line 784 of file BaseTest.py.

◆ TARGET

GaudiTesting.BaseTest.Result.TARGET
static

Definition at line 782 of file BaseTest.py.

◆ TIMEOUT_DETAIL

GaudiTesting.BaseTest.Result.TIMEOUT_DETAIL
static

Definition at line 786 of file BaseTest.py.

◆ TRACEBACK

GaudiTesting.BaseTest.Result.TRACEBACK
static

Definition at line 783 of file BaseTest.py.

◆ UNTESTED

GaudiTesting.BaseTest.Result.UNTESTED
static

Definition at line 778 of file BaseTest.py.


The documentation for this class was generated from the following file:
GaudiPython.Pythonizations.__getitem__
__getitem__
Definition: Pythonizations.py:144
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119