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’sconnection factory
to make connections.- __init__(*args, **kwargs)
Initialise a new instance.
- 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:
- Tango harness
- Mock subpackage
MockCallable
MockChangeEventCallback
MockDeviceBuilder
- Mock callables
MockCallable
MockCallableDeque
MockCallableDeque.__init__()
MockCallableDeque.assert_all_in_deque()
MockCallableDeque.assert_in_deque()
MockCallableDeque.assert_next_call_with_keys()
MockCallableDeque.assert_next_calls_with_keys()
MockCallableDeque.assert_not_called_with_keys()
MockCallableDeque.assert_ordered_in_deque()
MockCallableDeque.get_next_call_with_keys()
MockChangeEventCallback
- Mock devices