Skip to content

Commit

Permalink
Add empty line after module docstring [tests a-e] (#112708)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Mar 8, 2024
1 parent c88b337 commit 38adfbf
Show file tree
Hide file tree
Showing 577 changed files with 577 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/components/abode/common.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration for Abode tests."""

from collections.abc import Generator
from unittest.mock import AsyncMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_alarm_control_panel.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_binary_sensor.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_camera.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Abode config flow."""

from http import HTTPStatus
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_cover.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Abode cover device."""

from unittest.mock import patch

from homeassistant.components.abode import ATTR_DEVICE_ID
Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Abode module."""

from http import HTTPStatus
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_light.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Abode light device."""

from unittest.mock import patch

from homeassistant.components.abode import ATTR_DEVICE_ID
Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_lock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Abode lock device."""

from unittest.mock import patch

from homeassistant.components.abode import ATTR_DEVICE_ID
Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_sensor.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
1 change: 1 addition & 0 deletions tests/components/abode/test_switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Abode switch device."""

from unittest.mock import patch

from homeassistant.components.abode import (
Expand Down
1 change: 1 addition & 0 deletions tests/components/accuweather/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for the AccuWeather config flow."""

from unittest.mock import PropertyMock, patch

from accuweather import ApiError, InvalidApiKeyError, RequestsExceededError
Expand Down
1 change: 1 addition & 0 deletions tests/components/accuweather/test_diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test AccuWeather diagnostics."""

from syrupy import SnapshotAssertion

from homeassistant.core import HomeAssistant
Expand Down
1 change: 1 addition & 0 deletions tests/components/accuweather/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test init of AccuWeather integration."""

from datetime import timedelta
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/accuweather/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test sensor of AccuWeather integration."""

from datetime import timedelta
from unittest.mock import PropertyMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/accuweather/test_weather.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test weather of AccuWeather integration."""

from datetime import timedelta
from unittest.mock import PropertyMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/acmeda/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for the Acmeda config flow."""

from unittest.mock import patch

import aiopulse
Expand Down
1 change: 1 addition & 0 deletions tests/components/adax/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Adax config flow."""

from unittest.mock import patch

import adax_local
Expand Down
1 change: 1 addition & 0 deletions tests/components/advantage_air/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fixtures for advantage_air."""

from __future__ import annotations

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/advantage_air/test_binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Advantage Air Binary Sensor Platform."""

from datetime import timedelta
from unittest.mock import AsyncMock

Expand Down
1 change: 1 addition & 0 deletions tests/components/advantage_air/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Advantage Air config flow."""

from unittest.mock import AsyncMock, patch

from advantage_air import ApiError
Expand Down
1 change: 1 addition & 0 deletions tests/components/advantage_air/test_cover.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Advantage Air Cover Platform."""

from unittest.mock import AsyncMock

from homeassistant.components.cover import (
Expand Down
1 change: 1 addition & 0 deletions tests/components/advantage_air/test_diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Advantage Air Diagnostics."""

from unittest.mock import AsyncMock

from syrupy.assertion import SnapshotAssertion
Expand Down
1 change: 1 addition & 0 deletions tests/components/advantage_air/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Advantage Air Initialization."""

from unittest.mock import AsyncMock

from advantage_air import ApiError
Expand Down
1 change: 1 addition & 0 deletions tests/components/advantage_air/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Advantage Air Sensor Platform."""

from datetime import timedelta
from unittest.mock import AsyncMock

Expand Down
1 change: 1 addition & 0 deletions tests/components/aemet/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test fixtures for aemet."""

from collections.abc import Generator
from unittest.mock import AsyncMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/aemet/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/aemet/test_coordinator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for the AEMET OpenData coordinator."""

from unittest.mock import patch

from aemet_opendata.exceptions import AemetError
Expand Down
1 change: 1 addition & 0 deletions tests/components/aemet/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for the AEMET OpenData init."""

from unittest.mock import patch

from aemet_opendata.exceptions import AemetTimeout
Expand Down
1 change: 1 addition & 0 deletions tests/components/aemet/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the AEMET OpenData integration."""

from typing import Any
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/aftership/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common fixtures for the AfterShip tests."""

from collections.abc import Generator
from unittest.mock import AsyncMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/aftership/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test AfterShip config flow."""

from unittest.mock import AsyncMock, patch

from pyaftership import AfterShipException
Expand Down
1 change: 1 addition & 0 deletions tests/components/agent_dvr/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test fixtures for Agent DVR."""

from collections.abc import Generator
from unittest.mock import AsyncMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/agent_dvr/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Agent DVR integration."""

from unittest.mock import AsyncMock, patch

from agent import AgentError
Expand Down
1 change: 1 addition & 0 deletions tests/components/airly/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for the Airly config flow."""

from http import HTTPStatus

from airly.exceptions import AirlyError
Expand Down
1 change: 1 addition & 0 deletions tests/components/airly/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test init of Airly integration."""

from typing import Any

from freezegun.api import FrozenDateTimeFactory
Expand Down
1 change: 1 addition & 0 deletions tests/components/airly/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test sensor of Airly integration."""

from datetime import timedelta
from http import HTTPStatus
from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/components/airnow/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the AirNow config flow."""

from unittest.mock import AsyncMock, patch

from pyairnow.errors import AirNowError, EmptyResponseError, InvalidKeyError
Expand Down
1 change: 1 addition & 0 deletions tests/components/airnow/test_diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test AirNow diagnostics."""

from syrupy import SnapshotAssertion

from homeassistant.core import HomeAssistant
Expand Down
1 change: 1 addition & 0 deletions tests/components/airq/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test fixtures for air-Q."""

from collections.abc import Generator
from unittest.mock import AsyncMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/airq/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the air-Q config flow."""

from unittest.mock import patch

from aioairq import DeviceInfo, InvalidAuth
Expand Down
1 change: 1 addition & 0 deletions tests/components/airthings/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Airthings config flow."""

from unittest.mock import patch

import airthings
Expand Down
1 change: 1 addition & 0 deletions tests/components/airthings_ble/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Airthings BLE config flow."""

from unittest.mock import patch

from airthings_ble import AirthingsDevice
Expand Down
1 change: 1 addition & 0 deletions tests/components/airtouch4/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/airtouch5/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common fixtures for the Airtouch 5 tests."""

from collections.abc import Generator
from unittest.mock import AsyncMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/airtouch5/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Airtouch 5 config flow."""

from unittest.mock import AsyncMock, patch

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/airvisual/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define test fixtures for AirVisual."""

from collections.abc import Generator
import json
from unittest.mock import AsyncMock, Mock, patch
Expand Down
1 change: 1 addition & 0 deletions tests/components/airvisual/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for the AirVisual config flow."""

from unittest.mock import AsyncMock, patch

from pyairvisual.cloud_api import (
Expand Down
1 change: 1 addition & 0 deletions tests/components/airvisual/test_diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test AirVisual diagnostics."""

from syrupy import SnapshotAssertion

from homeassistant.core import HomeAssistant
Expand Down
1 change: 1 addition & 0 deletions tests/components/airvisual/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for AirVisual init."""

from unittest.mock import patch

from homeassistant.components.airvisual import (
Expand Down
1 change: 1 addition & 0 deletions tests/components/airvisual_pro/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define test fixtures for AirVisual Pro."""

from collections.abc import Generator
import json
from unittest.mock import AsyncMock, Mock, patch
Expand Down
1 change: 1 addition & 0 deletions tests/components/airvisual_pro/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the AirVisual Pro config flow."""

from unittest.mock import AsyncMock, patch

from pyairvisual.node import (
Expand Down
1 change: 1 addition & 0 deletions tests/components/airvisual_pro/test_diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test AirVisual Pro diagnostics."""

from syrupy import SnapshotAssertion

from homeassistant.core import HomeAssistant
Expand Down
1 change: 1 addition & 0 deletions tests/components/airzone/test_water_heater.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The water heater tests for the Airzone platform."""

from unittest.mock import patch

from aioairzone.const import (
Expand Down
1 change: 1 addition & 0 deletions tests/components/airzone_cloud/test_climate.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/aladdin_connect/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fixtures for the Aladdin Connect integration tests."""

from unittest import mock
from unittest.mock import AsyncMock

Expand Down
1 change: 1 addition & 0 deletions tests/components/aladdin_connect/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Aladdin Connect config flow."""

from unittest.mock import MagicMock, patch

from AIOAladdinConnect.session_manager import InvalidPasswordError
Expand Down
1 change: 1 addition & 0 deletions tests/components/aladdin_connect/test_cover.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Aladdin Connect Cover."""

from unittest.mock import AsyncMock, MagicMock, patch

from AIOAladdinConnect import session_manager
Expand Down
1 change: 1 addition & 0 deletions tests/components/aladdin_connect/test_diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test AccuWeather diagnostics."""

from unittest.mock import MagicMock, patch

from syrupy import SnapshotAssertion
Expand Down
1 change: 1 addition & 0 deletions tests/components/aladdin_connect/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test for Aladdin Connect init logic."""

from unittest.mock import MagicMock, patch

from AIOAladdinConnect.session_manager import InvalidPasswordError
Expand Down
1 change: 1 addition & 0 deletions tests/components/aladdin_connect/test_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Aladdin Connect model class."""

from homeassistant.components.aladdin_connect.model import DoorDevice
from homeassistant.core import HomeAssistant

Expand Down
1 change: 1 addition & 0 deletions tests/components/aladdin_connect/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Aladdin Connect Sensors."""

from datetime import timedelta
from unittest.mock import AsyncMock, MagicMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/alarm_control_panel/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for Alarm control panel device triggers."""

from datetime import timedelta

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/alarmdecoder/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the AlarmDecoder config flow."""

from unittest.mock import patch

from alarmdecoder.util import NoDeviceError
Expand Down
Loading

0 comments on commit 38adfbf

Please sign in to comment.