Testing subpackage

This subpackage contains modules for helper classes in the SKA SAT LMC tests.

class TangoHarness(*args, **kwargs)

Abstract base class for Tango test harnesses.

This does very little, because it needs to support both harnesses that directly interact with Tango, and wrapper harnesses that add functionality to another harness.

The one really important thing it does do, is ensure that ska_sat_lmc.device_proxy.SatDeviceProxy uses this harness’s connection factory to make connections.

__init__(*args, **kwargs)

Initialise a new instance.

Parameters:
  • args (Any) – additional positional arguments

  • kwargs (Any) – additional keyword arguments

property connection_factory: Callable[[str], tango.DeviceProxy]

Establish connections to devices with this factory.

Raises:

NotImplementedError – because this method is abstract

property fqdns: list[str]

Return FQDNs of devices in this harness.

Raises:

NotImplementedError – because this method is abstract

get_device(fqdn)

Create and return a proxy to the device at the given FQDN.

Parameters:

fqdn (str) – FQDN of the device for which a proxy is required

Raises:

NotImplementedError – because this method is abstract

Return type:

SatDeviceProxy