tests: Fix num-enroll-stages signature in dbusmock template

It's marked as a signed integer, not an unsigned one in the API.
This commit is contained in:
Marco Trevisan (Treviño)
2020-01-31 12:12:13 +01:00
committed by Bastien Nocera
parent 33a21b5089
commit 8e3345a60f

View File

@ -116,7 +116,7 @@ def AddDevice(self, device_name, num_enroll_stages, scan_type):
path = '/net/reactivated/Fprint/Device/%d' % self.last_device_id
device_properties = {
'name': dbus.String(device_name, variant_level=1),
'num-enroll-stages': dbus.UInt32(num_enroll_stages, variant_level=1),
'num-enroll-stages': dbus.Int32(num_enroll_stages, variant_level=1),
'scan-type': scan_type
}