DeviceWrapper

class ska_csp_lmc_common.testing.k8s_test.wrappers.DeviceWrapper(trl: str, initial_conditions: dict | None = None, logger: Logger | None = None)

Bases: object

A wrapper class for the Tango Devices.

_check_initial_status_conditions(device: DeviceProxy) dict
is_in_initial_status() bool

Check that the device is in it initial state. If the Wrapper has no initial conditions defined, raise and exception

Returns:

a boolean value representing if the device is in its initial status

check_device(timeout: int = 10) None

Check that the device can be reached by Tango communications :param: device: the Tango deviceproxy to be checked

initialize_device(num_retry: int = 5, sleep_time: int = 1.5) None

Try to send init to the device 5 times :param: device: the device to be initialized