This pull request provides DeviceTestContext and MultiDeviceTestContext support for memorized attributes.
This has value because it allows lightweight testing of device initialisation where device attributes are memorized.
The implementation provides a memorized argument that is handled just like the properties argument:
For DeviceTestContext, a new constructor argument is added:
with DeviceTestContext(TestDevice, memorized={"attr": "1"}) as proxy:
asserty proxy.attr == 1
For MultiDeviceTestContext, the devices_info structure has a new memorized key:
This pull request provides
DeviceTestContext
andMultiDeviceTestContext
support for memorized attributes. This has value because it allows lightweight testing of device initialisation where device attributes are memorized.The implementation provides a
memorized
argument that is handled just like theproperties
argument:DeviceTestContext
, a new constructor argument is added:MultiDeviceTestContext
, thedevices_info
structure has a newmemorized
key: