Add empty line after module docstring (2) [tests.components] (#112737)

This commit is contained in:
Marc Mueller 2024-03-08 19:16:21 +01:00 committed by GitHub
parent 2c06d4fcb9
commit 32f3f46542
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
569 changed files with 569 additions and 0 deletions

View File

@ -1,4 +1,5 @@
"""Test AccuWeather system health.""" """Test AccuWeather system health."""
import asyncio import asyncio
from unittest.mock import Mock from unittest.mock import Mock

View File

@ -1,4 +1,5 @@
"""Tests for the AdGuard Home config flow.""" """Tests for the AdGuard Home config flow."""
import aiohttp import aiohttp
from homeassistant import config_entries, data_entry_flow from homeassistant import config_entries, data_entry_flow

View File

@ -1,4 +1,5 @@
"""The sensor tests for the AEMET OpenData platform.""" """The sensor tests for the AEMET OpenData platform."""
import datetime import datetime
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests for the Agent DVR config flow.""" """Tests for the Agent DVR config flow."""
import pytest import pytest
from homeassistant import data_entry_flow from homeassistant import data_entry_flow

View File

@ -1,4 +1,5 @@
"""The tests for the Air Quality component.""" """The tests for the Air Quality component."""
import pytest import pytest
from homeassistant.components.air_quality import ATTR_N2O, ATTR_OZONE, ATTR_PM_10 from homeassistant.components.air_quality import ATTR_N2O, ATTR_OZONE, ATTR_PM_10

View File

@ -1,4 +1,5 @@
"""Test Airly system health.""" """Test Airly system health."""
import asyncio import asyncio
from unittest.mock import Mock from unittest.mock import Mock

View File

@ -1,4 +1,5 @@
"""Define fixtures for AirNow tests.""" """Define fixtures for AirNow tests."""
import json import json
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch

View File

@ -1,4 +1,5 @@
"""Test the Airthings Wave sensor.""" """Test the Airthings Wave sensor."""
import logging import logging
from homeassistant.components.airthings_ble.const import DOMAIN from homeassistant.components.airthings_ble.const import DOMAIN

View File

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

View File

@ -1,4 +1,5 @@
"""The tests for Alarm control panel device actions.""" """The tests for Alarm control panel device actions."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""The tests for Alarm control panel device conditions.""" """The tests for Alarm control panel device conditions."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""Test reproduce state for Alarm control panel.""" """Test reproduce state for Alarm control panel."""
import pytest import pytest
from homeassistant.const import ( from homeassistant.const import (

View File

@ -1,4 +1,5 @@
"""Test the Alarm Control Panel significant change platform.""" """Test the Alarm Control Panel significant change platform."""
import pytest import pytest
from homeassistant.components.alarm_control_panel import ( from homeassistant.components.alarm_control_panel import (

View File

@ -1,4 +1,5 @@
"""Test reproduce state for Alert.""" """Test reproduce state for Alert."""
import pytest import pytest
from homeassistant.core import HomeAssistant, State from homeassistant.core import HomeAssistant, State

View File

@ -1,4 +1,5 @@
"""Test config.""" """Test config."""
import asyncio import asyncio
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test report state.""" """Test report state."""
import json import json
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch

View File

@ -1,4 +1,5 @@
"""Define test fixtures for Ambient PWS.""" """Define test fixtures for Ambient PWS."""
import json import json
from unittest.mock import AsyncMock, Mock, patch from unittest.mock import AsyncMock, Mock, patch

View File

@ -1,4 +1,5 @@
"""Test init of APCUPSd integration.""" """Test init of APCUPSd integration."""
import asyncio import asyncio
from collections import OrderedDict from collections import OrderedDict
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""The tests for the Home Assistant API component.""" """The tests for the Home Assistant API component."""
import asyncio import asyncio
from http import HTTPStatus from http import HTTPStatus
import json import json

View File

@ -1,4 +1,5 @@
"""The tests for Arcam FMJ Receiver control device triggers.""" """The tests for Arcam FMJ Receiver control device triggers."""
import pytest import pytest
from homeassistant.components.arcam_fmj.const import DOMAIN from homeassistant.components.arcam_fmj.const import DOMAIN

View File

@ -1,4 +1,5 @@
"""Test Voice Assistant init.""" """Test Voice Assistant init."""
import asyncio import asyncio
from dataclasses import asdict from dataclasses import asdict
import itertools as it import itertools as it

View File

@ -1,4 +1,5 @@
"""Tests for voice command segmenter.""" """Tests for voice command segmenter."""
import itertools as it import itertools as it
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Websocket tests for Voice Assistant integration.""" """Websocket tests for Voice Assistant integration."""
import asyncio import asyncio
import base64 import base64
from typing import Any from typing import Any

View File

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

View File

@ -1,4 +1,5 @@
"""The binary_sensor tests for the august platform.""" """The binary_sensor tests for the august platform."""
import datetime import datetime
import time import time
from unittest.mock import Mock, patch from unittest.mock import Mock, patch

View File

@ -1,4 +1,5 @@
"""The lock tests for the august platform.""" """The lock tests for the august platform."""
import datetime import datetime
from unittest.mock import Mock from unittest.mock import Mock

View File

@ -1,4 +1,5 @@
"""Test configuration for auth.""" """Test configuration for auth."""
import pytest import pytest

View File

@ -1,4 +1,5 @@
"""Tests for the client validator.""" """Tests for the client validator."""
import asyncio import asyncio
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test built-in blueprints.""" """Test built-in blueprints."""
import asyncio import asyncio
import contextlib import contextlib
from datetime import timedelta from datetime import timedelta

View File

@ -1,4 +1,5 @@
"""The tests for the automation component.""" """The tests for the automation component."""
import asyncio import asyncio
from datetime import timedelta from datetime import timedelta
import logging import logging

View File

@ -1,4 +1,5 @@
"""Test reproduce state for Automation.""" """Test reproduce state for Automation."""
import pytest import pytest
from homeassistant.core import HomeAssistant, State from homeassistant.core import HomeAssistant, State

View File

@ -1,4 +1,5 @@
"""Tests for the aws component config and setup.""" """Tests for the aws component config and setup."""
import json import json
from unittest.mock import AsyncMock, MagicMock, call, patch as async_patch from unittest.mock import AsyncMock, MagicMock, call, patch as async_patch

View File

@ -1,4 +1,5 @@
"""Axis binary sensor platform tests.""" """Axis binary sensor platform tests."""
import pytest import pytest
from homeassistant.components.axis.const import DOMAIN as AXIS_DOMAIN from homeassistant.components.axis.const import DOMAIN as AXIS_DOMAIN

View File

@ -1,4 +1,5 @@
"""Test Axis diagnostics.""" """Test Axis diagnostics."""
import pytest import pytest
from syrupy import SnapshotAssertion from syrupy import SnapshotAssertion

View File

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

View File

@ -1,4 +1,5 @@
"""The test for the bayesian sensor platform.""" """The test for the bayesian sensor platform."""
import json import json
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Blebox button entities tests.""" """Blebox button entities tests."""
import logging import logging
from unittest.mock import PropertyMock from unittest.mock import PropertyMock

View File

@ -1,4 +1,5 @@
"""BleBox climate entities tests.""" """BleBox climate entities tests."""
import logging import logging
from unittest.mock import AsyncMock, PropertyMock from unittest.mock import AsyncMock, PropertyMock

View File

@ -1,4 +1,5 @@
"""BleBox cover entities tests.""" """BleBox cover entities tests."""
import logging import logging
from unittest.mock import AsyncMock, PropertyMock from unittest.mock import AsyncMock, PropertyMock

View File

@ -1,4 +1,5 @@
"""BleBox devices setup tests.""" """BleBox devices setup tests."""
import logging import logging
import blebox_uniapi import blebox_uniapi

View File

@ -1,4 +1,5 @@
"""BleBox light entities tests.""" """BleBox light entities tests."""
import logging import logging
from unittest.mock import AsyncMock, PropertyMock from unittest.mock import AsyncMock, PropertyMock

View File

@ -1,4 +1,5 @@
"""Blebox sensors tests.""" """Blebox sensors tests."""
import logging import logging
from unittest.mock import AsyncMock, PropertyMock from unittest.mock import AsyncMock, PropertyMock

View File

@ -1,4 +1,5 @@
"""Blebox switch tests.""" """Blebox switch tests."""
import logging import logging
from unittest.mock import AsyncMock, PropertyMock from unittest.mock import AsyncMock, PropertyMock

View File

@ -1,4 +1,5 @@
"""Test default blueprints.""" """Test default blueprints."""
import importlib import importlib
import logging import logging
import pathlib import pathlib

View File

@ -1,4 +1,5 @@
"""Test blueprint importing.""" """Test blueprint importing."""
import json import json
from pathlib import Path from pathlib import Path

View File

@ -1,4 +1,5 @@
"""Test blueprint models.""" """Test blueprint models."""
import logging import logging
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch

View File

@ -1,4 +1,5 @@
"""Test schemas.""" """Test schemas."""
import logging import logging
import pytest import pytest

View File

@ -1,4 +1,5 @@
"""Tests for the Bluetooth integration API.""" """Tests for the Bluetooth integration API."""
import time import time
from bleak.backends.scanner import AdvertisementData, BLEDevice from bleak.backends.scanner import AdvertisementData, BLEDevice

View File

@ -1,4 +1,5 @@
"""Tests for the Bluetooth integration.""" """Tests for the Bluetooth integration."""
import asyncio import asyncio
from datetime import timedelta from datetime import timedelta
import time import time

View File

@ -1,4 +1,5 @@
"""Tests for the Bluetooth integration scanners.""" """Tests for the Bluetooth integration scanners."""
import asyncio import asyncio
from datetime import timedelta from datetime import timedelta
import time import time

View File

@ -1,4 +1,5 @@
"""Test BMW diagnostics.""" """Test BMW diagnostics."""
import datetime import datetime
import os import os
import time import time

View File

@ -1,4 +1,5 @@
"""Test the Broadlink config flow.""" """Test the Broadlink config flow."""
import errno import errno
import socket import socket
from unittest.mock import call, patch from unittest.mock import call, patch

View File

@ -1,4 +1,5 @@
"""Tests for Broadlink helper functions.""" """Tests for Broadlink helper functions."""
import pytest import pytest
import voluptuous as vol import voluptuous as vol

View File

@ -1,4 +1,5 @@
"""Test BTHome BLE events.""" """Test BTHome BLE events."""
import pytest import pytest
from homeassistant.components import automation from homeassistant.components import automation

View File

@ -1,4 +1,5 @@
"""The tests for generic camera component.""" """The tests for generic camera component."""
import asyncio import asyncio
from contextlib import suppress from contextlib import suppress
import copy import copy

View File

@ -1,4 +1,5 @@
"""The tests for Button device actions.""" """The tests for Button device actions."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""Tests for the Cert Expiry config flow.""" """Tests for the Cert Expiry config flow."""
import socket import socket
import ssl import ssl
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""The test for the Facebook notify module.""" """The test for the Facebook notify module."""
import base64 import base64
from http import HTTPStatus from http import HTTPStatus
import logging import logging

View File

@ -1,4 +1,5 @@
"""The tests for Climate device actions.""" """The tests for Climate device actions."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered
import voluptuous_serialize import voluptuous_serialize

View File

@ -1,4 +1,5 @@
"""The tests for Climate device conditions.""" """The tests for Climate device conditions."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered
import voluptuous_serialize import voluptuous_serialize

View File

@ -1,4 +1,5 @@
"""The tests for Climate device triggers.""" """The tests for Climate device triggers."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered
import voluptuous_serialize import voluptuous_serialize

View File

@ -1,4 +1,5 @@
"""The tests for reproduction of state.""" """The tests for reproduction of state."""
import pytest import pytest
from homeassistant.components.climate import ( from homeassistant.components.climate import (

View File

@ -1,4 +1,5 @@
"""Test the Climate significant change platform.""" """Test the Climate significant change platform."""
import pytest import pytest
from homeassistant.components.climate import ( from homeassistant.components.climate import (

View File

@ -1,4 +1,5 @@
"""Test account link services.""" """Test account link services."""
import asyncio import asyncio
import logging import logging
from time import time from time import time

View File

@ -1,4 +1,5 @@
"""Test Alexa config.""" """Test Alexa config."""
import contextlib import contextlib
from unittest.mock import AsyncMock, Mock, patch from unittest.mock import AsyncMock, Mock, patch

View File

@ -1,4 +1,5 @@
"""Test the cloud assist pipeline.""" """Test the cloud assist pipeline."""
import pytest import pytest
from homeassistant.components.cloud.assist_pipeline import ( from homeassistant.components.cloud.assist_pipeline import (

View File

@ -1,4 +1,5 @@
"""Test cloud system health.""" """Test cloud system health."""
import asyncio import asyncio
from collections.abc import Callable, Coroutine from collections.abc import Callable, Coroutine
from typing import Any from typing import Any

View File

@ -1,4 +1,5 @@
"""Test the Cloudflare config flow.""" """Test the Cloudflare config flow."""
import pycfdns import pycfdns
from homeassistant.components.cloudflare.const import CONF_RECORDS, DOMAIN from homeassistant.components.cloudflare.const import CONF_RECORDS, DOMAIN

View File

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

View File

@ -1,4 +1,5 @@
"""Common fixtures for the Color extractor tests.""" """Common fixtures for the Color extractor tests."""
import pytest import pytest
from homeassistant.components.color_extractor.const import DOMAIN from homeassistant.components.color_extractor.const import DOMAIN

View File

@ -1,4 +1,5 @@
"""Tests for color_extractor component service calls.""" """Tests for color_extractor component service calls."""
import base64 import base64
import io import io
from typing import Any from typing import Any

View File

@ -1,4 +1,5 @@
"""The tests for the integration sensor platform.""" """The tests for the integration sensor platform."""
import pytest import pytest
from homeassistant.components.compensation.const import CONF_PRECISION, DOMAIN from homeassistant.components.compensation.const import CONF_PRECISION, DOMAIN

View File

@ -1,4 +1,5 @@
"""Test area_registry API.""" """Test area_registry API."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""Test config entries API.""" """Test config entries API."""
import pytest import pytest
from homeassistant.auth import models as auth_models from homeassistant.auth import models as auth_models

View File

@ -1,4 +1,5 @@
"""Test device_registry API.""" """Test device_registry API."""
import pytest import pytest
from homeassistant.components.config import device_registry from homeassistant.components.config import device_registry

View File

@ -1,4 +1,5 @@
"""Test entity_registry API.""" """Test entity_registry API."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""Test floor registry API.""" """Test floor registry API."""
import pytest import pytest
from homeassistant.components.config import floor_registry from homeassistant.components.config import floor_registry

View File

@ -1,4 +1,5 @@
"""Test label registry API.""" """Test label registry API."""
import pytest import pytest
from homeassistant.components.config import label_registry from homeassistant.components.config import label_registry

View File

@ -1,4 +1,5 @@
"""The tests for the counter component.""" """The tests for the counter component."""
import logging import logging
import pytest import pytest

View File

@ -1,4 +1,5 @@
"""Test reproduce state for Counter.""" """Test reproduce state for Counter."""
import pytest import pytest
from homeassistant.core import HomeAssistant, State from homeassistant.core import HomeAssistant, State

View File

@ -1,4 +1,5 @@
"""The tests for Cover device actions.""" """The tests for Cover device actions."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""The tests for Cover device conditions.""" """The tests for Cover device conditions."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""Test reproduce state for Cover.""" """Test reproduce state for Cover."""
import pytest import pytest
from homeassistant.components.cover import ( from homeassistant.components.cover import (

View File

@ -1,4 +1,5 @@
"""Test the Cover significant change platform.""" """Test the Cover significant change platform."""
import pytest import pytest
from homeassistant.components.cover import ( from homeassistant.components.cover import (

View File

@ -1,4 +1,5 @@
"""Tests for deCONZ config flow.""" """Tests for deCONZ config flow."""
import logging import logging
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test deCONZ component setup process.""" """Test deCONZ component setup process."""
import asyncio import asyncio
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""The tests for the Demo component.""" """The tests for the Demo component."""
import json import json
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""The tests for the notify demo platform.""" """The tests for the notify demo platform."""
import logging import logging
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""The tests for the demo weather component.""" """The tests for the demo weather component."""
import datetime import datetime
from typing import Any from typing import Any
from unittest.mock import patch from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test the Derivative integration.""" """Test the Derivative integration."""
import pytest import pytest
from homeassistant.components.derivative.const import DOMAIN from homeassistant.components.derivative.const import DOMAIN

View File

@ -1,4 +1,5 @@
"""Test the Devialet diagnostics.""" """Test the Devialet diagnostics."""
import json import json
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""The tests for Device tracker device conditions.""" """The tests for Device tracker device conditions."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""The tests for Device Tracker device triggers.""" """The tests for Device Tracker device triggers."""
import pytest import pytest
from pytest_unordered import unordered from pytest_unordered import unordered
import voluptuous_serialize import voluptuous_serialize

View File

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

View File

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

View File

@ -1,4 +1,5 @@
"""Test Discord config flow.""" """Test Discord config flow."""
import nextcord import nextcord
from homeassistant import config_entries, data_entry_flow from homeassistant import config_entries, data_entry_flow

View File

@ -1,4 +1,5 @@
"""Test Discord notify.""" """Test Discord notify."""
import logging import logging
import pytest import pytest

View File

@ -1,4 +1,5 @@
"""Constants for Discovergy integration tests.""" """Constants for Discovergy integration tests."""
import datetime import datetime
from pydiscovergy.models import Location, Meter, Reading from pydiscovergy.models import Location, Meter, Reading

View File

@ -1,4 +1,5 @@
"""Test Discovergy diagnostics.""" """Test Discovergy diagnostics."""
import pytest import pytest
from syrupy import SnapshotAssertion from syrupy import SnapshotAssertion

View File

@ -1,4 +1,5 @@
"""Test Discovergy system health.""" """Test Discovergy system health."""
import asyncio import asyncio
from aiohttp import ClientError from aiohttp import ClientError

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