I agree with zombie that unit tests are needed. Ideally, you would find a nice way to fake the OSK and trigger the events it is supposed to trigger.
About the autopilot tests, I think we have everything we need now. We need to extend get_keyboard with:
if model == touch:
if maliit is not running with testability:
restart malit with testability
return ubuntu_keyboard.emulators.keyboard.Keyboard()
else:
return input.Keyboard.create()
I agree with zombie that unit tests are needed. Ideally, you would find a nice way to fake the OSK and trigger the events it is supposed to trigger.
About the autopilot tests, I think we have everything we need now. We need to extend get_keyboard with:
if model == touch: keyboard. emulators. keyboard. Keyboard( ) create( )
if maliit is not running with testability:
restart malit with testability
return ubuntu_
else:
return input.Keyboard.