Fix Device green_mode usage in MultiDeviceTestContext
Running multiple devices with their green_mode
set to tango.GreenMode.Asyncio
via the MultiDeviceTestContext
would fail. One of the devices would work correctly, but not others. E.g,. attributes would be missing, or init_device
would fail to be called.
The test context has been updated to pass the green mode through when starting the device server.
The case of a single device has not been changed, as it was working: Device.run()
honours the setting in the green_mode
attribute.
Note that trying to start multiple devices with different green modes in the same device server process is not supported. This will raise an exception.
There are a few pytest related package pins to keep the Python 3.5 job working.