Testing subpackage
This subpackage contains modules for helper classes in the SKA Low MCCS 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_low_mccs_common.device_proxy.MccsDeviceProxyuses this harness’sconnection factoryto make connections.- __init__(*args, **kwargs)
Initialise a new instance.
- property connection_factory: Callable[[str], 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
MockCallableMockCallableDequeMockCallableDeque.__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()
MockChangeEventCallbackMockDeviceBuilderMockSubarrayBuilder- Mock callables
MockCallableMockCallableDequeMockCallableDeque.__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
- Mock subarray