The Gaudi Framework  v36r1 (3e2fb5a8)
GaudiTesting.BaseTest.Result Class Reference
Collaboration diagram for GaudiTesting.BaseTest.Result:

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

string PASS = 'PASS'
 
string FAIL = 'FAIL'
 
string ERROR = 'ERROR'
 
string UNTESTED = 'UNTESTED'
 
string EXCEPTION = ""
 
string RESOURCE = ""
 
string TARGET = ""
 
string TRACEBACK = ""
 
string START_TIME = ""
 
string END_TIME = ""
 
string TIMEOUT_DETAIL = ""
 

Detailed Description

Definition at line 704 of file BaseTest.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 719 of file BaseTest.py.

719  def __init__(self, kind=None, id=None, outcome=PASS, annotations={}):
720  self.annotations = annotations.copy()
721 

Member Function Documentation

◆ __getitem__()

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

Definition at line 722 of file BaseTest.py.

722  def __getitem__(self, key):
723  assert isinstance(key, six.string_types)
724  return self.annotations[key]
725 

◆ __setitem__()

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

Definition at line 726 of file BaseTest.py.

726  def __setitem__(self, key, value):
727  assert isinstance(key, six.string_types)
728  assert isinstance(
729  value, six.string_types), '{!r} is not a string'.format(value)
730  self.annotations[key] = value
731 

◆ Quote()

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

Definition at line 732 of file BaseTest.py.

732  def Quote(self, text):
733  """
734  Convert text to html by escaping special chars and adding <pre> tags.
735  """
736  return "<pre>{}</pre>".format(escape_for_html(text))
737 
738 
739 # -------------------------------------------------------------------------#
740 # --------------------------- Validator Classes ---------------------------#
741 # -------------------------------------------------------------------------#
742 
743 # Basic implementation of an option validator for Gaudi test. This
744 # implementation is based on the standard (LCG) validation functions used
745 # in QMTest.
746 
747 

Member Data Documentation

◆ annotations

GaudiTesting.BaseTest.Result.annotations

Definition at line 720 of file BaseTest.py.

◆ END_TIME

string GaudiTesting.BaseTest.Result.END_TIME = ""
static

Definition at line 716 of file BaseTest.py.

◆ ERROR

string GaudiTesting.BaseTest.Result.ERROR = 'ERROR'
static

Definition at line 708 of file BaseTest.py.

◆ EXCEPTION

string GaudiTesting.BaseTest.Result.EXCEPTION = ""
static

Definition at line 711 of file BaseTest.py.

◆ FAIL

string GaudiTesting.BaseTest.Result.FAIL = 'FAIL'
static

Definition at line 707 of file BaseTest.py.

◆ PASS

string GaudiTesting.BaseTest.Result.PASS = 'PASS'
static

Definition at line 706 of file BaseTest.py.

◆ RESOURCE

string GaudiTesting.BaseTest.Result.RESOURCE = ""
static

Definition at line 712 of file BaseTest.py.

◆ START_TIME

string GaudiTesting.BaseTest.Result.START_TIME = ""
static

Definition at line 715 of file BaseTest.py.

◆ TARGET

string GaudiTesting.BaseTest.Result.TARGET = ""
static

Definition at line 713 of file BaseTest.py.

◆ TIMEOUT_DETAIL

string GaudiTesting.BaseTest.Result.TIMEOUT_DETAIL = ""
static

Definition at line 717 of file BaseTest.py.

◆ TRACEBACK

string GaudiTesting.BaseTest.Result.TRACEBACK = ""
static

Definition at line 714 of file BaseTest.py.

◆ UNTESTED

string GaudiTesting.BaseTest.Result.UNTESTED = 'UNTESTED'
static

Definition at line 709 of file BaseTest.py.


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