gstlal 1.13.0
Loading...
Searching...
No Matches
python.utilities.testtools Namespace Reference

Classes

class  GstLALTestManager

Functions

 clean_str (str c)
 is_osx (str platform=PLATFORM)
types.FunctionType skip_osx (types.FunctionType f)
 requires_full_build (types.FunctionType f)
 broken (str reason)
 impl_deprecated (f)

Variables

 PLATFORM = sys.platform
tuple DEFAULT_MOCK_PATCHES
dict CLEAN_TRANSLATION = {ord(c): None for c in string.whitespace}

Detailed Description

Test utilities. Common functions used across various GstLAL unittests

Function Documentation

◆ broken()

broken ( str reason)

Definition at line 50 of file testtools.py.

◆ clean_str()

clean_str ( str c)
Clean a copyright string before comparison

Definition at line 31 of file testtools.py.

◆ impl_deprecated()

impl_deprecated ( f)

Definition at line 59 of file testtools.py.

◆ is_osx()

is_osx ( str platform = PLATFORM)
Check is OSX

Definition at line 36 of file testtools.py.

◆ requires_full_build()

requires_full_build ( types.FunctionType f)

Definition at line 46 of file testtools.py.

◆ skip_osx()

types.FunctionType skip_osx ( types.FunctionType f)
Decorator wrapping pytest.skipif

Definition at line 41 of file testtools.py.

Variable Documentation

◆ CLEAN_TRANSLATION

dict python.utilities.testtools.CLEAN_TRANSLATION = {ord(c): None for c in string.whitespace}

Definition at line 28 of file testtools.py.

◆ DEFAULT_MOCK_PATCHES

tuple python.utilities.testtools.DEFAULT_MOCK_PATCHES
Initial value:
= (
# Ordered mapping of (target, {kwarg: value}) for passing into unittest.mock.patch
('gstlal.datafind.load_frame_cache', {'return_value': [1, 2, 3]}),
)

Definition at line 24 of file testtools.py.

◆ PLATFORM

python.utilities.testtools.PLATFORM = sys.platform

Definition at line 22 of file testtools.py.