mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-04 21:08:03 +02:00
tests/fprintd: Make tests pass with libfprint 1.94.7
This commit is contained in:
parent
d065842604
commit
e429e68246
1 changed files with 6 additions and 0 deletions
|
|
@ -365,6 +365,8 @@ class FPrintdTest(dbusmock.DBusTestCase):
|
|||
self.run_dir = os.path.join(self.test_dir, 'run')
|
||||
self.device_id = 0
|
||||
self._async_call_res = {}
|
||||
os.environ['FP_DRIVERS_ALLOWLIST'] = self.device_driver
|
||||
# TODO: Remove this when we depend on libfprint 1.94.7
|
||||
os.environ['FP_DRIVERS_WHITELIST'] = self.device_driver
|
||||
|
||||
# Always start fake polkitd because of
|
||||
|
|
@ -1249,11 +1251,15 @@ class FPrintdManagerTests(FPrintdVirtualDeviceBaseTest):
|
|||
class FPrintdManagerPreStartTests(FPrintdVirtualImageDeviceBaseTests):
|
||||
|
||||
def test_manager_get_no_devices(self):
|
||||
os.environ['FP_DRIVERS_ALLOWLIST'] = 'hopefully_no_existing_driver'
|
||||
# TODO: Remove this when we depend on libfprint 1.94.7
|
||||
os.environ['FP_DRIVERS_WHITELIST'] = 'hopefully_no_existing_driver'
|
||||
self.daemon_start()
|
||||
self.assertListEqual(self.manager.GetDevices(), [])
|
||||
|
||||
def test_manager_get_no_default_device(self):
|
||||
os.environ['FP_DRIVERS_ALLOWLIST'] = 'hopefully_no_existing_driver'
|
||||
# TODO: Remove this when we depend on libfprint 1.94.7
|
||||
os.environ['FP_DRIVERS_WHITELIST'] = 'hopefully_no_existing_driver'
|
||||
self.daemon_start()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue