Exemple #1
0
def sensor():
    return ACStatus()
def sensors() -> t.Iterator[t.List[Sensor[t.Any]]]:
    """Patch the get_sensors method to return a known pair of sensors only"""
    data: t.List[Sensor[t.Any]] = [PythonVersion(), ACStatus()]
    with patch("apd.sensors.cli.get_sensors") as get_sensors:
        get_sensors.return_value = data
        yield data