Module status :: Class Status
[hide private]
[frames] | no frames]

type Status

source code


The relax status singleton class.

Instance Methods [hide private]
str
_det_install_path(self)
Determine, with a bit of magic, the relax installation path.
source code
 
_setup(self)
Initialise all the status data structures.
source code
 
_set_text_width(self)
Define the text width for text formatting throughout relax.
source code
 
_setup_observers(self)
Set up all the observer objects.
source code
 
init_auto_analysis(self, name, type)
Initialise a status container for an auto-analysis.
source code
 
reset(self)
Reset the status object to its initial state.
source code
Static Methods [hide private]
 
__new__(self, *args, **kargs)
Replacement method for implementing the singleton design pattern.
source code
Class Variables [hide private]
  _instance = Status()
Instance Variables [hide private]
  skipped_tests
The skipped tests list.
Method Details [hide private]

__new__(self, *args, **kargs)
Static Method

source code 

Replacement method for implementing the singleton design pattern.

Overrides: object.__new__

_det_install_path(self)

source code 

Determine, with a bit of magic, the relax installation path.

Returns: str
The relax installation path. With a Mac OS X app, this will be the path to the 'Resources'.

_set_text_width(self)

source code 

Define the text width for text formatting throughout relax.

The width will be based on that reported by the terminal, bracketed by an upper value of 100 characters. If the value cannot be determined, on MS Windows it will be set to 79 characters to allow for the MS Windows cmd.exe prompt.

init_auto_analysis(self, name, type)

source code 

Initialise a status container for an auto-analysis.

Parameters:
  • name (str.) - The unique name of the auto-analysis. This will act as a key.
  • type (str) - The type of auto-analysis.

Instance Variable Details [hide private]

skipped_tests

The skipped tests list. Each element should be a list of the test case name, the missing Python module, and the name of the test suite category (i.e. 'system' or 'unit').