gstlal 1.13.0
Loading...
Searching...
No Matches
python.utilities.testtools.GstLALTestManager Class Reference

Public Member Functions

 __init__ (self, Tuple[Dict[str, Dict]] patch_info=DEFAULT_MOCK_PATCHES, dict env_overrides=None, bool with_pipeline=False)
 __enter__ (self)
 __exit__ (self, exc_type, exc_val, exc_tb)
 cache_path (self)
 override_env_var (self, str key, str val)
 reset_env_var (self, str key)
 set_pipeline (self)

Public Attributes

 tmp_dir = tempfile.TemporaryDirectory()
 tmp_path = pathlib.Path(self.tmp_dir.name)
 patch_info = patch_info
 pipeline = Gst.Pipeline(name=os.path.split(sys.argv[0])[1])

Protected Attributes

list _patches = []
dict _env_originals = {}
dict _env_overrides = {} if env_overrides is None else env_overrides
 _with_pipeline = with_pipeline

Detailed Description

Context manager for GstLAL tests

Definition at line 63 of file testtools.py.

Constructor & Destructor Documentation

◆ __init__()

python.utilities.testtools.GstLALTestManager.__init__ ( self,
Tuple[Dict[str, Dict]] patch_info = DEFAULT_MOCK_PATCHES,
dict env_overrides = None,
bool with_pipeline = False )

Definition at line 66 of file testtools.py.

Member Function Documentation

◆ __enter__()

python.utilities.testtools.GstLALTestManager.__enter__ ( self)
Enter the GstLAL testing context

Definition at line 75 of file testtools.py.

◆ __exit__()

python.utilities.testtools.GstLALTestManager.__exit__ ( self,
exc_type,
exc_val,
exc_tb )
Exit GstLAL context

Definition at line 97 of file testtools.py.

◆ cache_path()

python.utilities.testtools.GstLALTestManager.cache_path ( self)
Cache path

Definition at line 113 of file testtools.py.

◆ override_env_var()

python.utilities.testtools.GstLALTestManager.override_env_var ( self,
str key,
str val )

Definition at line 117 of file testtools.py.

◆ reset_env_var()

python.utilities.testtools.GstLALTestManager.reset_env_var ( self,
str key )

Definition at line 124 of file testtools.py.

◆ set_pipeline()

python.utilities.testtools.GstLALTestManager.set_pipeline ( self)

Definition at line 135 of file testtools.py.

Member Data Documentation

◆ _env_originals

dict python.utilities.testtools.GstLALTestManager._env_originals = {}
protected

Definition at line 71 of file testtools.py.

◆ _env_overrides

dict python.utilities.testtools.GstLALTestManager._env_overrides = {} if env_overrides is None else env_overrides
protected

Definition at line 72 of file testtools.py.

◆ _patches

list python.utilities.testtools.GstLALTestManager._patches = []
protected

Definition at line 70 of file testtools.py.

◆ _with_pipeline

python.utilities.testtools.GstLALTestManager._with_pipeline = with_pipeline
protected

Definition at line 73 of file testtools.py.

◆ patch_info

python.utilities.testtools.GstLALTestManager.patch_info = patch_info

Definition at line 69 of file testtools.py.

◆ pipeline

python.utilities.testtools.GstLALTestManager.pipeline = Gst.Pipeline(name=os.path.split(sys.argv[0])[1])

Definition at line 137 of file testtools.py.

◆ tmp_dir

python.utilities.testtools.GstLALTestManager.tmp_dir = tempfile.TemporaryDirectory()

Definition at line 67 of file testtools.py.

◆ tmp_path

python.utilities.testtools.GstLALTestManager.tmp_path = pathlib.Path(self.tmp_dir.name)

Definition at line 68 of file testtools.py.


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