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."""
import asyncio
from unittest.mock import Mock

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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