mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-01-05 23:10:18 +01:00
tests/fprintd: Verify that we can enroll with one stage only
This commit is contained in:
parent
32ae65fae6
commit
8491d35eef
1 changed files with 8 additions and 0 deletions
|
|
@ -814,6 +814,14 @@ class FPrintdVirtualStorageDeviceTests(FPrintdVirtualStorageDeviceBaseTest):
|
|||
|
||||
self.device.Release()
|
||||
|
||||
def test_enroll_with_one_stage_only(self):
|
||||
self.device.Claim('(s)', 'testuser')
|
||||
self.addCleanup(self.device.Release)
|
||||
self._maybe_reduce_enroll_stages(stages=1)
|
||||
|
||||
self.enroll_print('FP1-20000101-7-ABCDEFGH-testuser', 'left-index-finger')
|
||||
self.assertEqual(self.device.ListEnrolledFingers('(s)', 'testuser'), ['left-index-finger'])
|
||||
|
||||
class FPrintdVirtualNoStorageDeviceBaseTest(FPrintdVirtualStorageDeviceBaseTest):
|
||||
|
||||
socket_env = 'FP_VIRTUAL_DEVICE'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue