ophyd_async.tango.testing#
Package Contents#
Classes#
All members should exist in the Backend, and there will be no extras. |
|
Device class for the high-level API. |
|
Configuration for a single Tango device instance for MultiDeviceTestContext. |
|
Functions#
Generate a random Tango domain/family/member prefix for use in test devices. |
Data#
API#
- class ophyd_async.tango.testing.ExampleStrEnum[source]#
Bases:
ophyd_async.core.StrictEnumAll members should exist in the Backend, and there will be no extras.
- A#
‘AAA’
- B#
‘BBB’
- C#
‘CCC’
- class ophyd_async.tango.testing.OneOfEverythingTangoDevice(cl, name)[source]#
Bases:
tango.server.DeviceDevice class for the high-level API.
All device-specific classes should inherit from this class.
- attr_values#
None
- initial_values#
None
- initialize_dynamic_attributes()[source]#
Method executed at initializion phase to create dynamic attributes. Default implementation does nothing. Overwrite when necessary.
.. note:: This method is only called once when the device server starts, after init_device(), but before the device is marked as exported. If the Init command is executed on the device, the initialize_dynamic_attributes() method will not be called again.
- float_to_bool_cmd(value: float) bool[source]#
Command with float input and bool output (different in/out types).
- echo_command_code#
‘dedent(…)’
- ophyd_async.tango.testing.TangoClassConfig#
‘TypedDict(…)’
- class ophyd_async.tango.testing.TangoDeviceInfo[source]#
Bases:
typing.TypedDictConfiguration for a single Tango device instance for MultiDeviceTestContext.
- properties: NotRequired[dict[str, Any]]#
None
- class ophyd_async.tango.testing.TangoSubprocessDeviceServer(args: Sequence[TangoClassConfig])[source]#