Add empty line after module docstring [tests a-e] (#112708)

This commit is contained in:
Marc Mueller 2024-03-08 14:50:25 +01:00 committed by GitHub
parent c88b337600
commit 38adfbf1a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
577 changed files with 577 additions and 0 deletions

View file

@ -1,4 +1,5 @@
"""Common methods used across tests for Abode."""
from unittest.mock import patch
from homeassistant.components.abode import DOMAIN as ABODE_DOMAIN

View file

@ -1,4 +1,5 @@
"""Configuration for Abode tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Tests for the Abode alarm control panel device."""
from unittest.mock import PropertyMock, patch
from jaraco.abode.helpers import constants as CONST

View file

@ -1,4 +1,5 @@
"""Tests for the Abode binary sensor device."""
from homeassistant.components.abode import ATTR_DEVICE_ID
from homeassistant.components.abode.const import ATTRIBUTION
from homeassistant.components.binary_sensor import (

View file

@ -1,4 +1,5 @@
"""Tests for the Abode camera device."""
from unittest.mock import patch
from homeassistant.components.abode.const import DOMAIN as ABODE_DOMAIN

View file

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

View file

@ -1,4 +1,5 @@
"""Tests for the Abode cover device."""
from unittest.mock import patch
from homeassistant.components.abode import ATTR_DEVICE_ID

View file

@ -1,4 +1,5 @@
"""Tests for the Abode module."""
from http import HTTPStatus
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Tests for the Abode light device."""
from unittest.mock import patch
from homeassistant.components.abode import ATTR_DEVICE_ID

View file

@ -1,4 +1,5 @@
"""Tests for the Abode lock device."""
from unittest.mock import patch
from homeassistant.components.abode import ATTR_DEVICE_ID

View file

@ -1,4 +1,5 @@
"""Tests for the Abode sensor device."""
from homeassistant.components.abode import ATTR_DEVICE_ID
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN, SensorDeviceClass
from homeassistant.const import (

View file

@ -1,4 +1,5 @@
"""Tests for the Abode switch device."""
from unittest.mock import patch
from homeassistant.components.abode import (

View file

@ -1,4 +1,5 @@
"""Define tests for the AccuWeather config flow."""
from unittest.mock import PropertyMock, patch
from accuweather import ApiError, InvalidApiKeyError, RequestsExceededError

View file

@ -1,4 +1,5 @@
"""Test AccuWeather diagnostics."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Test init of AccuWeather integration."""
from datetime import timedelta
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Test sensor of AccuWeather integration."""
from datetime import timedelta
from unittest.mock import PropertyMock, patch

View file

@ -1,4 +1,5 @@
"""Test weather of AccuWeather integration."""
from datetime import timedelta
from unittest.mock import PropertyMock, patch

View file

@ -1,4 +1,5 @@
"""Define tests for the Acmeda config flow."""
from unittest.mock import patch
import aiopulse

View file

@ -1,4 +1,5 @@
"""Test the Adax config flow."""
from unittest.mock import patch
import adax_local

View file

@ -1,4 +1,5 @@
"""Fixtures for advantage_air."""
from __future__ import annotations
import pytest

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Binary Sensor Platform."""
from datetime import timedelta
from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air config flow."""
from unittest.mock import AsyncMock, patch
from advantage_air import ApiError

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Cover Platform."""
from unittest.mock import AsyncMock
from homeassistant.components.cover import (

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Diagnostics."""
from unittest.mock import AsyncMock
from syrupy.assertion import SnapshotAssertion

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Initialization."""
from unittest.mock import AsyncMock
from advantage_air import ApiError

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Sensor Platform."""
from datetime import timedelta
from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test fixtures for aemet."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Define tests for the AEMET OpenData config flow."""
from unittest.mock import AsyncMock, MagicMock, patch
from aemet_opendata.exceptions import AuthError

View file

@ -1,4 +1,5 @@
"""Define tests for the AEMET OpenData coordinator."""
from unittest.mock import patch
from aemet_opendata.exceptions import AemetError

View file

@ -1,4 +1,5 @@
"""Define tests for the AEMET OpenData init."""
from unittest.mock import patch
from aemet_opendata.exceptions import AemetTimeout

View file

@ -1,4 +1,5 @@
"""Tests for the AEMET OpenData integration."""
from typing import Any
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Common fixtures for the AfterShip tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Test AfterShip config flow."""
from unittest.mock import AsyncMock, patch
from pyaftership import AfterShipException

View file

@ -1,4 +1,5 @@
"""Test fixtures for Agent DVR."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Test Agent DVR integration."""
from unittest.mock import AsyncMock, patch
from agent import AgentError

View file

@ -1,4 +1,5 @@
"""Define tests for the Airly config flow."""
from http import HTTPStatus
from airly.exceptions import AirlyError

View file

@ -1,4 +1,5 @@
"""Test init of Airly integration."""
from typing import Any
from freezegun.api import FrozenDateTimeFactory

View file

@ -1,4 +1,5 @@
"""Test sensor of Airly integration."""
from datetime import timedelta
from http import HTTPStatus
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Test the AirNow config flow."""
from unittest.mock import AsyncMock, patch
from pyairnow.errors import AirNowError, EmptyResponseError, InvalidKeyError

View file

@ -1,4 +1,5 @@
"""Test AirNow diagnostics."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Test fixtures for air-Q."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Test the air-Q config flow."""
from unittest.mock import patch
from aioairq import DeviceInfo, InvalidAuth

View file

@ -1,4 +1,5 @@
"""Test the Airthings config flow."""
from unittest.mock import patch
import airthings

View file

@ -1,4 +1,5 @@
"""Test the Airthings BLE config flow."""
from unittest.mock import patch
from airthings_ble import AirthingsDevice

View file

@ -1,4 +1,5 @@
"""Test the AirTouch 4 config flow."""
from unittest.mock import AsyncMock, Mock, patch
from airtouch4pyapi.airtouch import AirTouch, AirTouchAc, AirTouchGroup, AirTouchStatus

View file

@ -1,4 +1,5 @@
"""Common fixtures for the Airtouch 5 tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

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

View file

@ -1,4 +1,5 @@
"""Define test fixtures for AirVisual."""
from collections.abc import Generator
import json
from unittest.mock import AsyncMock, Mock, patch

View file

@ -1,4 +1,5 @@
"""Define tests for the AirVisual config flow."""
from unittest.mock import AsyncMock, patch
from pyairvisual.cloud_api import (

View file

@ -1,4 +1,5 @@
"""Test AirVisual diagnostics."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Define tests for AirVisual init."""
from unittest.mock import patch
from homeassistant.components.airvisual import (

View file

@ -1,4 +1,5 @@
"""Define test fixtures for AirVisual Pro."""
from collections.abc import Generator
import json
from unittest.mock import AsyncMock, Mock, patch

View file

@ -1,4 +1,5 @@
"""Test the AirVisual Pro config flow."""
from unittest.mock import AsyncMock, patch
from pyairvisual.node import (

View file

@ -1,4 +1,5 @@
"""Test AirVisual Pro diagnostics."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""The water heater tests for the Airzone platform."""
from unittest.mock import patch
from aioairzone.const import (

View file

@ -1,4 +1,5 @@
"""The climate tests for the Airzone Cloud platform."""
from unittest.mock import patch
from aioairzone_cloud.const import API_DEFAULT_TEMP_STEP

View file

@ -1,4 +1,5 @@
"""Fixtures for the Aladdin Connect integration tests."""
from unittest import mock
from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test the Aladdin Connect config flow."""
from unittest.mock import MagicMock, patch
from AIOAladdinConnect.session_manager import InvalidPasswordError

View file

@ -1,4 +1,5 @@
"""Test the Aladdin Connect Cover."""
from unittest.mock import AsyncMock, MagicMock, patch
from AIOAladdinConnect import session_manager

View file

@ -1,4 +1,5 @@
"""Test AccuWeather diagnostics."""
from unittest.mock import MagicMock, patch
from syrupy import SnapshotAssertion

View file

@ -1,4 +1,5 @@
"""Test for Aladdin Connect init logic."""
from unittest.mock import MagicMock, patch
from AIOAladdinConnect.session_manager import InvalidPasswordError

View file

@ -1,4 +1,5 @@
"""Test the Aladdin Connect model class."""
from homeassistant.components.aladdin_connect.model import DoorDevice
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Test the Aladdin Connect Sensors."""
from datetime import timedelta
from unittest.mock import AsyncMock, MagicMock, patch

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.alarm_control_panel import DOMAIN
from homeassistant.const import (
ATTR_CODE,

View file

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

View file

@ -1,4 +1,5 @@
"""Test the AlarmDecoder config flow."""
from unittest.mock import patch
from alarmdecoder.util import NoDeviceError

View file

@ -1,4 +1,5 @@
"""Test Alexa auth endpoints."""
from homeassistant.components.alexa.auth import Auth
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET
from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Test Alexa capabilities."""
from typing import Any
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Test helpers for the Alexa integration."""
from unittest.mock import Mock
from uuid import uuid4

View file

@ -1,4 +1,5 @@
"""Test Alexa entity representation."""
from typing import Any
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Tests for alexa."""
from homeassistant.components.alexa.const import EVENT_ALEXA_SMART_HOME
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component

View file

@ -1,4 +1,5 @@
"""The tests for the Alexa component."""
from http import HTTPStatus
import json

View file

@ -1,4 +1,5 @@
"""Test for smart home alexa support."""
from typing import Any
from unittest.mock import AsyncMock, MagicMock, patch

View file

@ -1,4 +1,5 @@
"""Test Smart Home HTTP endpoints."""
from http import HTTPStatus
import json
import logging

View file

@ -1,4 +1,5 @@
"""Provide common Amber fixtures."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Test the Amber Electric Sensors."""
from __future__ import annotations
from collections.abc import AsyncGenerator

View file

@ -1,4 +1,5 @@
"""Tests for the Amber Electric Data Coordinator."""
from __future__ import annotations
from collections.abc import Generator

View file

@ -1,4 +1,5 @@
"""Test the Amber Electric Sensors."""
from collections.abc import AsyncGenerator
from unittest.mock import Mock, patch

View file

@ -1,4 +1,5 @@
"""Tests for the Ambiclimate config flow."""
from unittest.mock import AsyncMock, patch
import ambiclimate

View file

@ -1,4 +1,5 @@
"""Define tests for the Ambient PWS config flow."""
from unittest.mock import AsyncMock, patch
from aioambient.errors import AmbientError

View file

@ -1,4 +1,5 @@
"""Test Ambient PWS diagnostics."""
from syrupy import SnapshotAssertion
from homeassistant.components.ambient_station import DOMAIN

View file

@ -1,4 +1,5 @@
"""The tests for the analytics ."""
from collections.abc import Generator
from typing import Any
from unittest.mock import AsyncMock, Mock, PropertyMock, patch

View file

@ -1,4 +1,5 @@
"""The tests for the analytics ."""
from unittest.mock import patch
from homeassistant.components.analytics.const import ANALYTICS_ENDPOINT_URL, DOMAIN

View file

@ -1,4 +1,5 @@
"""Common fixtures for the Homeassistant Analytics tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Test the Homeassistant Analytics config flow."""
from typing import Any
from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test the Home Assistant analytics init module."""
from __future__ import annotations
from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test the Home Assistant analytics sensor module."""
from datetime import timedelta
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Fixtures for tests."""
from http import HTTPStatus
import pytest

View file

@ -1,4 +1,5 @@
"""Test the Android IP Webcam config flow."""
from unittest.mock import Mock, patch
import aiohttp

View file

@ -1,4 +1,5 @@
"""Define patches used for androidtv tests."""
from unittest.mock import patch
from androidtv.constants import CMD_DEVICE_PROPERTIES, CMD_MAC_ETH0, CMD_MAC_WLAN0

View file

@ -1,4 +1,5 @@
"""Tests for the AndroidTV config flow."""
from typing import Any
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""The tests for the androidtv platform."""
from datetime import timedelta
import logging
from typing import Any

View file

@ -1,4 +1,5 @@
"""Fixtures for the Android TV Remote integration tests."""
from collections.abc import Callable, Generator
from unittest.mock import AsyncMock, MagicMock, patch

View file

@ -1,4 +1,5 @@
"""Test the Android TV Remote config flow."""
from ipaddress import ip_address
from unittest.mock import AsyncMock, MagicMock

View file

@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the Android TV Remote integration."""
from unittest.mock import MagicMock
from syrupy.assertion import SnapshotAssertion

View file

@ -1,4 +1,5 @@
"""Tests for the Android TV Remote integration."""
from collections.abc import Callable
from unittest.mock import AsyncMock, MagicMock

View file

@ -1,4 +1,5 @@
"""Tests for the Android TV Remote remote platform."""
from unittest.mock import MagicMock, call
from androidtvremote2 import ConnectionClosed

View file

@ -1,4 +1,5 @@
"""Tests for the Android TV Remote remote platform."""
from unittest.mock import MagicMock, call
from androidtvremote2 import ConnectionClosed

View file

@ -1,4 +1,5 @@
"""Common fixtures for Anova."""
from unittest.mock import AsyncMock, patch
from anova_wifi import AnovaApi, AnovaPrecisionCooker, InvalidLogin, NoDevicesFound

View file

@ -1,4 +1,5 @@
"""Fixtures for anthemav integration tests."""
from collections.abc import Callable
from unittest.mock import AsyncMock, MagicMock, patch

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