mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
fp-device: Gracefully handle capture calls on devices with no support
This commit is contained in:
@@ -858,6 +858,12 @@ class VirtualDevice(VirtualDeviceBase):
|
||||
self.assertTrue(error.exception.matches(FPrint.DeviceError.quark(),
|
||||
FPrint.DeviceError.NOT_SUPPORTED))
|
||||
|
||||
def test_capture_unsupported(self):
|
||||
with self.assertRaises(GLib.Error) as error:
|
||||
self.dev.capture_sync(wait_for_finger=False)
|
||||
self.assertTrue(error.exception.matches(FPrint.DeviceError.quark(),
|
||||
FPrint.DeviceError.NOT_SUPPORTED))
|
||||
|
||||
|
||||
class VirtualDeviceClosed(VirtualDeviceBase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user