Add empty line after module docstring [tests l-p] (#112710)

This commit is contained in:
Marc Mueller 2024-03-08 14:55:15 +01:00 committed by GitHub
parent 7cbe49520e
commit 1722e23df8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
532 changed files with 532 additions and 0 deletions

View file

@ -1,4 +1,5 @@
"""Define fixtures for LaCrosse View tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Test the LaCrosse View config flow."""
from unittest.mock import AsyncMock, patch
from lacrosse_view import Location, LoginError

View file

@ -1,4 +1,5 @@
"""Test diagnostics of LaCrosse View."""
from unittest.mock import patch
from syrupy.assertion import SnapshotAssertion

View file

@ -1,4 +1,5 @@
"""Test the LaCrosse View initialization."""
from datetime import timedelta
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Test the LaCrosse View sensors."""
from typing import Any
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Tests for La Marzocco binary sensors."""
from unittest.mock import MagicMock
import pytest

View file

@ -1,4 +1,5 @@
"""Test the La Marzocco config flow."""
from unittest.mock import MagicMock
from lmcloud.exceptions import AuthFail, RequestNotSuccessful

View file

@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the La Marzocco integration."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Test initialization of lamarzocco."""
from unittest.mock import MagicMock
from lmcloud.exceptions import AuthFail, RequestNotSuccessful

View file

@ -1,4 +1,5 @@
"""Tests for La Marzocco sensors."""
from unittest.mock import MagicMock
import pytest

View file

@ -1,4 +1,5 @@
"""Tests for La Marzocco switches."""
from unittest.mock import MagicMock
import pytest

View file

@ -1,4 +1,5 @@
"""Fixtures for LaMetric integration tests."""
from __future__ import annotations
from collections.abc import Generator

View file

@ -1,4 +1,5 @@
"""Tests for the LaMetric button platform."""
from unittest.mock import MagicMock
from demetriek import LaMetricConnectionError, LaMetricError

View file

@ -1,4 +1,5 @@
"""Tests for the LaMetric config flow."""
from http import HTTPStatus
from unittest.mock import MagicMock

View file

@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the LaMetric integration."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Tests for the LaMetric helpers."""
from unittest.mock import MagicMock
import pytest

View file

@ -1,4 +1,5 @@
"""Tests for the LaMetric integration."""
from unittest.mock import MagicMock
from demetriek import (

View file

@ -1,4 +1,5 @@
"""Tests for the LaMetric notify platform."""
from unittest.mock import MagicMock
from demetriek import (

View file

@ -1,4 +1,5 @@
"""Tests for the LaMetric number platform."""
from unittest.mock import MagicMock
from demetriek import LaMetricConnectionError, LaMetricError

View file

@ -1,4 +1,5 @@
"""Tests for the LaMetric select platform."""
from unittest.mock import MagicMock
from demetriek import BrightnessMode, LaMetricConnectionError, LaMetricError

View file

@ -1,4 +1,5 @@
"""Tests for the LaMetric services."""
from unittest.mock import MagicMock
from demetriek import (

View file

@ -1,4 +1,5 @@
"""Tests for the LaMetric switch platform."""
from unittest.mock import MagicMock
from demetriek import LaMetricConnectionError, LaMetricError

View file

@ -1,4 +1,5 @@
"""Define fixtures for Landis + Gyr Heat Meter tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Test the Landis + Gyr Heat Meter config flow."""
from dataclasses import dataclass
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Test the Landis + Gyr Heat Meter init."""
from unittest.mock import patch
from homeassistant.components.landisgyr_heat_meter.const import (

View file

@ -1,4 +1,5 @@
"""Configure tests for the LastFM integration."""
from collections.abc import Awaitable, Callable
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Test Lastfm config flow."""
from unittest.mock import patch
from pylast import WSError

View file

@ -1,4 +1,5 @@
"""Test LastFM component setup process."""
from __future__ import annotations
from homeassistant.components.lastfm.const import DOMAIN

View file

@ -1,4 +1,5 @@
"""Test launch_library config flow."""
from unittest.mock import patch
from homeassistant import data_entry_flow

View file

@ -1,4 +1,5 @@
"""The tests for the lawn mower integration."""
from collections.abc import Generator
from unittest.mock import MagicMock

View file

@ -1,4 +1,5 @@
"""Test for the LCN binary sensor platform."""
from pypck.inputs import ModStatusBinSensors, ModStatusKeyLocks, ModStatusVar
from pypck.lcn_addr import LcnAddr
from pypck.lcn_defs import Var, VarValue

View file

@ -1,4 +1,5 @@
"""Tests for the LCN config flow."""
from unittest.mock import patch
from pypck.connection import PchkAuthenticationError, PchkLicenseError

View file

@ -1,4 +1,5 @@
"""Test for the LCN cover platform."""
from unittest.mock import patch
from pypck.inputs import ModStatusOutput, ModStatusRelays

View file

@ -1,4 +1,5 @@
"""Tests for LCN device triggers."""
from pypck.inputs import ModSendKeysHost, ModStatusAccessControl
from pypck.lcn_addr import LcnAddr
from pypck.lcn_defs import AccessControlPeriphery, KeyAction, SendKeyCommand

View file

@ -1,4 +1,5 @@
"""Tests for LCN events."""
from pypck.inputs import Input, ModSendKeysHost, ModStatusAccessControl
from pypck.lcn_addr import LcnAddr
from pypck.lcn_defs import AccessControlPeriphery, KeyAction, SendKeyCommand

View file

@ -1,4 +1,5 @@
"""Test init of LCN integration."""
from unittest.mock import patch
from pypck.connection import (

View file

@ -1,4 +1,5 @@
"""Test for the LCN light platform."""
from unittest.mock import patch
from pypck.inputs import ModStatusOutput, ModStatusRelays

View file

@ -1,4 +1,5 @@
"""Test for the LCN sensor platform."""
from pypck.inputs import ModStatusLedsAndLogicOps, ModStatusVar
from pypck.lcn_addr import LcnAddr
from pypck.lcn_defs import LedStatus, LogicOpStatus, Var, VarValue

View file

@ -1,4 +1,5 @@
"""Test for the LCN switch platform."""
from unittest.mock import patch
from pypck.inputs import ModStatusOutput, ModStatusRelays

View file

@ -1,4 +1,5 @@
"""Test the LD2410 BLE Bluetooth config flow."""
from unittest.mock import patch
from bleak import BleakError

View file

@ -1,4 +1,5 @@
"""Test the Leaone config flow."""
from unittest.mock import patch
from homeassistant import config_entries

View file

@ -1,4 +1,5 @@
"""Test the LED BLE Bluetooth config flow."""
from unittest.mock import patch
from bleak import BleakError

View file

@ -1,4 +1,5 @@
"""Test the lg_soundbar config flow."""
from __future__ import annotations
from collections.abc import Callable

View file

@ -1,4 +1,5 @@
"""Configure pytest for Lidarr tests."""
from __future__ import annotations
from collections.abc import Awaitable, Callable, Generator

View file

@ -1,4 +1,5 @@
"""Test Lidarr config flow."""
from homeassistant.components.lidarr.const import DEFAULT_NAME, DOMAIN
from homeassistant.config_entries import SOURCE_REAUTH, SOURCE_USER
from homeassistant.const import CONF_API_KEY, CONF_SOURCE

View file

@ -1,4 +1,5 @@
"""Test Lidarr integration."""
from homeassistant.components.lidarr.const import DEFAULT_NAME, DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""The tests for Lidarr sensor platform."""
from homeassistant.components.sensor import CONF_STATE_CLASS, SensorStateClass
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Tests for the lifx integration."""
from unittest.mock import AsyncMock, MagicMock, patch
import pytest

View file

@ -1,4 +1,5 @@
"""Test the lifx binary sensor platform."""
from __future__ import annotations
from datetime import timedelta

View file

@ -1,4 +1,5 @@
"""Tests for button platform."""
from unittest.mock import patch
import pytest

View file

@ -1,4 +1,5 @@
"""Tests for the lifx integration config flow."""
from ipaddress import ip_address
import socket
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Test LIFX diagnostics."""
from homeassistant.components import lifx
from homeassistant.const import CONF_HOST
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Tests for the lifx component."""
from __future__ import annotations
from datetime import timedelta

View file

@ -1,4 +1,5 @@
"""Tests the lifx migration."""
from __future__ import annotations
from datetime import timedelta

View file

@ -1,4 +1,5 @@
"""Tests for the lifx integration select entity."""
from datetime import timedelta
from homeassistant.components import lifx

View file

@ -1,4 +1,5 @@
"""Test the LIFX sensor platform."""
from __future__ import annotations
from datetime import timedelta

View file

@ -3,6 +3,7 @@
All containing methods are legacy helpers that should not be used by new
components. Instead call the service directly.
"""
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_BRIGHTNESS_PCT,

View file

@ -1,4 +1,5 @@
"""The test for light device automation."""
from datetime import timedelta
from freezegun import freeze_time

View file

@ -1,4 +1,5 @@
"""The test for light device automation."""
from datetime import timedelta
import pytest

View file

@ -1,4 +1,5 @@
"""The tests for the Light component."""
from unittest.mock import MagicMock, mock_open, patch
import pytest

View file

@ -1,4 +1,5 @@
"""Tests for the light intents."""
from homeassistant.components import light
from homeassistant.components.light import ATTR_SUPPORTED_COLOR_MODES, ColorMode, intent
from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_ON

View file

@ -1,4 +1,5 @@
"""The tests for light recorder."""
from __future__ import annotations
from datetime import timedelta

View file

@ -1,4 +1,5 @@
"""Test the Light significant change platform."""
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_COLOR_TEMP,

View file

@ -1,4 +1,5 @@
"""Fixtures for LiteJet testing."""
from datetime import timedelta
from unittest.mock import AsyncMock, Mock, patch

View file

@ -1,4 +1,5 @@
"""The tests for the litejet component."""
from unittest.mock import patch
from serial import SerialException

View file

@ -1,4 +1,5 @@
"""The tests for the litejet component."""
from homeassistant.core import HomeAssistant
from . import async_init_integration

View file

@ -1,4 +1,5 @@
"""The tests for the litejet component."""
from homeassistant.components import litejet
from homeassistant.components.litejet.const import DOMAIN
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""The tests for the litejet component."""
from homeassistant.components import light
from homeassistant.components.light import ATTR_BRIGHTNESS, ATTR_TRANSITION
from homeassistant.components.litejet.const import CONF_DEFAULT_TRANSITION

View file

@ -1,4 +1,5 @@
"""The tests for the litejet component."""
from homeassistant.components import scene
from homeassistant.const import (
ATTR_ENTITY_ID,

View file

@ -1,4 +1,5 @@
"""The tests for the litejet component."""
from homeassistant.components import switch
from homeassistant.const import (
ATTR_ENTITY_ID,

View file

@ -1,4 +1,5 @@
"""The tests for the litejet component."""
from datetime import timedelta
import logging
from unittest import mock

View file

@ -1,4 +1,5 @@
"""Common utils for Litter-Robot tests."""
from homeassistant.components.litterrobot import DOMAIN
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME

View file

@ -1,4 +1,5 @@
"""Configure pytest for Litter-Robot tests."""
from __future__ import annotations
from typing import Any

View file

@ -1,4 +1,5 @@
"""Test the Litter-Robot binary sensor entity."""
from unittest.mock import MagicMock
import pytest

View file

@ -1,4 +1,5 @@
"""Test the Litter-Robot button entity."""
from unittest.mock import MagicMock
from freezegun import freeze_time

View file

@ -1,4 +1,5 @@
"""Test the Litter-Robot config flow."""
from unittest.mock import patch
from pylitterbot import Account

View file

@ -1,4 +1,5 @@
"""Test Litter-Robot setup process."""
from unittest.mock import MagicMock, patch
from pylitterbot.exceptions import LitterRobotException, LitterRobotLoginException

View file

@ -1,4 +1,5 @@
"""Test the Litter-Robot select entity."""
from unittest.mock import AsyncMock, MagicMock
from pylitterbot import LitterRobot3, LitterRobot4

View file

@ -1,4 +1,5 @@
"""Test the Litter-Robot sensor entity."""
from unittest.mock import MagicMock
import pytest

View file

@ -1,4 +1,5 @@
"""Test the Litter-Robot switch entity."""
from unittest.mock import MagicMock
from pylitterbot import Robot

View file

@ -1,4 +1,5 @@
"""Test the Litter-Robot time entity."""
from __future__ import annotations
from datetime import datetime, time

View file

@ -1,4 +1,5 @@
"""Test the Litter-Robot update entity."""
from unittest.mock import AsyncMock, MagicMock
from pylitterbot import LitterRobot4

View file

@ -1,4 +1,5 @@
"""Test the Litter-Robot vacuum entity."""
from __future__ import annotations
from typing import Any

View file

@ -1,4 +1,5 @@
"""Test the Livisi Home Assistant config flow."""
from unittest.mock import patch
from aiolivisi import errors as livisi_errors

View file

@ -1,4 +1,5 @@
"""Test the Local Calendar config flow."""
from unittest.mock import patch
from homeassistant import config_entries

View file

@ -1,4 +1,5 @@
"""Tests for diagnostics platform of local calendar."""
from aiohttp.test_utils import TestClient
from freezegun import freeze_time
import pytest

View file

@ -1,4 +1,5 @@
"""The tests for local file camera component."""
from http import HTTPStatus
from unittest import mock

View file

@ -1,4 +1,5 @@
"""Tests for the local_ip config_flow."""
from __future__ import annotations
from homeassistant import data_entry_flow

View file

@ -1,4 +1,5 @@
"""Tests for the local_ip component."""
from __future__ import annotations
from homeassistant import config_entries

View file

@ -1,4 +1,5 @@
"""Common fixtures for the local_todo tests."""
from collections.abc import Generator
from pathlib import Path
from typing import Any

View file

@ -1,4 +1,5 @@
"""Test the local_todo config flow."""
from unittest.mock import AsyncMock
import pytest

View file

@ -1,4 +1,5 @@
"""The tests the for Locative device tracker platform."""
from http import HTTPStatus
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""The tests for Lock device triggers."""
from datetime import timedelta
import pytest

View file

@ -1,4 +1,5 @@
"""The tests for the lock component."""
from __future__ import annotations
import re

View file

@ -1,4 +1,5 @@
"""Test the Lock significant change platform."""
from homeassistant.components.lock.significant_change import (
async_check_significant_change,
)

View file

@ -1,4 +1,5 @@
"""Tests for the logbook component."""
from __future__ import annotations
import json

View file

@ -1,4 +1,5 @@
"""The tests for the logbook component models."""
from unittest.mock import Mock
from homeassistant.components.logbook.models import LazyEventPartialState

View file

@ -1,4 +1,5 @@
"""The tests for the Logentries component."""
from unittest.mock import ANY, call, patch
import pytest

View file

@ -1,4 +1,5 @@
"""The tests for the Logger component."""
from collections import defaultdict
import logging
from typing import Any

View file

@ -1,4 +1,5 @@
"""The tests for the london_air platform."""
from http import HTTPStatus
import requests_mock

Some files were not shown because too many files have changed in this diff Show more