def fake_monitor_device(request): context = request.getfixturevalue('context') device = random.choice(list(DeviceDatabase.db())) return Devices.from_path(context, device.device_path)
def fake_monitor_device(request): context = request.getfuncargvalue('context') device = random.choice(list(DeviceDatabase.db())) return Devices.from_path(context, device.device_path)
def fake_monitor_device(request): context = request.getfuncargvalue('context') device = get_device_sample(DeviceDatabase.db(), sample_size=1)[0] return Device.from_path(context, device.device_path)