Add empty line after module docstring [tests t-z] (#112712)

This commit is contained in:
Marc Mueller
2024-03-08 14:44:56 +01:00
committed by GitHub
parent 930a396712
commit 87165c0d6e
443 changed files with 443 additions and 0 deletions
@@ -1,4 +1,5 @@
"""The sensor tests for the tado platform."""
from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.core import HomeAssistant
+1
View File
@@ -1,4 +1,5 @@
"""The sensor tests for the tado platform."""
from homeassistant.core import HomeAssistant
from .util import async_init_integration
@@ -1,4 +1,5 @@
"""Test the Tado config flow."""
from http import HTTPStatus
from ipaddress import ip_address
from unittest.mock import MagicMock, patch
+1
View File
@@ -1,4 +1,5 @@
"""The sensor tests for the tado platform."""
from homeassistant.core import HomeAssistant
from .util import async_init_integration
@@ -1,4 +1,5 @@
"""The sensor tests for the tado platform."""
from homeassistant.core import HomeAssistant
from .util import async_init_integration
+1
View File
@@ -1,4 +1,5 @@
"""Fixtures for Tailscale integration tests."""
from __future__ import annotations
from collections.abc import Generator
@@ -1,4 +1,5 @@
"""Tests for the sensors provided by the Tailscale integration."""
from homeassistant.components.binary_sensor import (
STATE_OFF,
STATE_ON,
@@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the Tailscale integration."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant
+1
View File
@@ -1,4 +1,5 @@
"""Tests for the Tailscale integration."""
from unittest.mock import MagicMock
from tailscale import TailscaleAuthenticationError, TailscaleConnectionError
@@ -1,4 +1,5 @@
"""Tests for the sensors provided by the Tailscale integration."""
from homeassistant.components.sensor import SensorDeviceClass
from homeassistant.components.tailscale.const import DOMAIN
from homeassistant.const import ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, EntityCategory
+1
View File
@@ -1,4 +1,5 @@
"""Fixtures for the Tailwind integration tests."""
from __future__ import annotations
from collections.abc import Generator
+1
View File
@@ -1,4 +1,5 @@
"""Tests for button entities provided by the Tailwind integration."""
from unittest.mock import MagicMock
from gotailwind import TailwindError
@@ -1,4 +1,5 @@
"""Configuration flow tests for the Tailwind integration."""
from ipaddress import ip_address
from unittest.mock import MagicMock
+1
View File
@@ -1,4 +1,5 @@
"""Tests for cover entities provided by the Tailwind integration."""
from unittest.mock import ANY, MagicMock
from gotailwind import (
+1
View File
@@ -1,4 +1,5 @@
"""Integration tests for the Tailwind integration."""
from unittest.mock import MagicMock
from gotailwind import TailwindAuthenticationError, TailwindConnectionError
+1
View File
@@ -1,4 +1,5 @@
"""Tests for number entities provided by the Tailwind integration."""
from unittest.mock import MagicMock
from gotailwind import TailwindError
@@ -1,4 +1,5 @@
"""Fixtures for Tankerkoenig integration tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
@@ -1,4 +1,5 @@
"""Tests for Tankerkoenig config flow."""
from unittest.mock import patch
from aiotankerkoenig.exceptions import TankerkoenigInvalidKeyError
@@ -1,4 +1,5 @@
"""Tests for the Tankerkoening integration."""
from __future__ import annotations
from datetime import timedelta
@@ -1,4 +1,5 @@
"""Tests for the Tankerkoening integration."""
from __future__ import annotations
import pytest
+1
View File
@@ -1,4 +1,5 @@
"""Test fixtures for Tasmota component."""
from unittest.mock import patch
from hatasmota.discovery import get_status_sensor_entities
@@ -1,4 +1,5 @@
"""Test config flow."""
from homeassistant import config_entries
from homeassistant.core import HomeAssistant
from homeassistant.helpers.service_info.mqtt import MqttServiceInfo
@@ -1,4 +1,5 @@
"""Test Tautulli config flow."""
from unittest.mock import AsyncMock, patch
from pytautulli import exceptions
@@ -1,4 +1,5 @@
"""The tests for the TCP binary sensor platform."""
from datetime import timedelta
from unittest.mock import call, patch
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the TCP sensor platform."""
from copy import copy
from unittest.mock import call, patch
+1
View File
@@ -1,4 +1,5 @@
"""Fixtures for TechnoVE integration tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, patch
@@ -1,4 +1,5 @@
"""Tests for the TechnoVE binary sensor platform."""
from datetime import timedelta
from unittest.mock import MagicMock
+1
View File
@@ -1,4 +1,5 @@
"""Tests for the TechnoVE sensor platform."""
from datetime import timedelta
from unittest.mock import MagicMock
+1
View File
@@ -1,4 +1,5 @@
"""Tests for the TechnoVE switch platform."""
from unittest.mock import MagicMock
import pytest
+1
View File
@@ -1,4 +1,5 @@
"""Fixtures for Tedee integration tests."""
from __future__ import annotations
from collections.abc import Generator
@@ -1,4 +1,5 @@
"""Test the Tedee config flow."""
from unittest.mock import MagicMock
from pytedee_async import (
@@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the Tedee integration."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant
+1
View File
@@ -1,4 +1,5 @@
"""Test initialization of tedee."""
from unittest.mock import MagicMock
from pytedee_async.exception import TedeeAuthException, TedeeClientException
+1
View File
@@ -1,4 +1,5 @@
"""Tests for tedee lock."""
from datetime import timedelta
from unittest.mock import MagicMock
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the telegram.notify platform."""
from unittest.mock import patch
from homeassistant import config as hass_config
@@ -1,4 +1,5 @@
"""Tests for the telegram_bot integration."""
from unittest.mock import patch
import pytest
@@ -1,4 +1,5 @@
"""Test Telegram broadcast."""
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
@@ -1,4 +1,5 @@
"""Tests for the telegram_bot component."""
from unittest.mock import AsyncMock, patch
from telegram import Update
@@ -1,5 +1,6 @@
# flake8: noqa pylint: skip-file
"""Tests for the TelldusLive config flow."""
from unittest.mock import Mock, patch
import pytest
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the temper (USB temperature sensor) component."""
from datetime import timedelta
from unittest.mock import Mock, patch
@@ -1,4 +1,5 @@
"""The tests for the Template Binary sensor platform."""
from datetime import UTC, datetime, timedelta
import logging
from unittest.mock import patch
@@ -1,4 +1,5 @@
"""Test the Switch config flow."""
from typing import Any
from unittest.mock import patch
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the Template cover platform."""
from typing import Any
import pytest
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the Template image platform."""
from http import HTTPStatus
from io import BytesIO
from typing import Any
+1
View File
@@ -1,4 +1,5 @@
"""The test for the Template sensor platform."""
from datetime import timedelta
from unittest.mock import patch
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the Template number platform."""
from homeassistant import setup
from homeassistant.components.input_number import (
ATTR_VALUE as INPUT_NUMBER_ATTR_VALUE,
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the Template select platform."""
from homeassistant import setup
from homeassistant.components.input_select import (
ATTR_OPTION as INPUT_SELECT_ATTR_OPTION,
+1
View File
@@ -1,4 +1,5 @@
"""The test for the Template sensor platform."""
from asyncio import Event
from datetime import datetime, timedelta
from unittest.mock import ANY, patch
@@ -1,4 +1,5 @@
"""The tests for the Template automation."""
from datetime import timedelta
from unittest import mock
@@ -1,4 +1,5 @@
"""The tests for the Template Weather platform."""
from typing import Any
import pytest
@@ -1,4 +1,5 @@
"""Common fixutres with default mocks as well as common test helper methods."""
from dataclasses import dataclass
from datetime import timedelta
from typing import Any
@@ -1,4 +1,5 @@
"""Tests for binary sensors."""
from homeassistant.core import HomeAssistant
from .conftest import (
@@ -1,4 +1,5 @@
"""Test the Tesla Wall Connector config flow."""
from unittest.mock import patch
from tesla_wall_connector.exceptions import WallConnectorConnectionError
@@ -1,4 +1,5 @@
"""Test the Tesla Wall Connector config flow."""
from tesla_wall_connector.exceptions import WallConnectorConnectionError
from homeassistant import config_entries
@@ -1,4 +1,5 @@
"""Tests for sensors."""
from homeassistant.core import HomeAssistant
from .conftest import (
+1
View File
@@ -1,4 +1,5 @@
"""Fixtures for Tessie."""
from __future__ import annotations
from copy import deepcopy
@@ -1,4 +1,5 @@
"""Test the Teslemetry sensor platform."""
from freezegun.api import FrozenDateTimeFactory
import pytest
from syrupy import SnapshotAssertion
+1
View File
@@ -1,4 +1,5 @@
"""Fixtures for Tessie."""
from __future__ import annotations
from unittest.mock import patch
+1
View File
@@ -1,4 +1,5 @@
"""Test the Tessie button platform."""
from unittest.mock import patch
from syrupy import SnapshotAssertion
+1
View File
@@ -1,4 +1,5 @@
"""Test the Tessie climate platform."""
from unittest.mock import patch
import pytest
@@ -1,4 +1,5 @@
"""Test the Tessie sensor platform."""
from datetime import timedelta
from homeassistant.components.tessie import PLATFORMS
+1
View File
@@ -1,4 +1,5 @@
"""Test the Tessie cover platform."""
from unittest.mock import patch
import pytest
+1
View File
@@ -1,4 +1,5 @@
"""Test the Tessie select platform."""
from unittest.mock import patch
import pytest
+1
View File
@@ -1,4 +1,5 @@
"""Test the Tessie sensor platform."""
from freezegun.api import FrozenDateTimeFactory
import pytest
from syrupy import SnapshotAssertion
+1
View File
@@ -1,4 +1,5 @@
"""Test the Tessie switch platform."""
from unittest.mock import patch
from syrupy import SnapshotAssertion
+1
View File
@@ -1,4 +1,5 @@
"""Test the Tessie update platform."""
from unittest.mock import patch
from syrupy import SnapshotAssertion
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the text component."""
from typing import Any
import pytest
+1
View File
@@ -1,4 +1,5 @@
"""The tests for text recorder."""
from __future__ import annotations
from datetime import timedelta
@@ -1,4 +1,5 @@
"""Test the ThermoBeacon config flow."""
from unittest.mock import patch
from homeassistant import config_entries
@@ -1,4 +1,5 @@
"""Test the ThermoBeacon sensors."""
from homeassistant.components.sensor import ATTR_STATE_CLASS
from homeassistant.components.thermobeacon.const import DOMAIN
from homeassistant.const import ATTR_FRIENDLY_NAME, ATTR_UNIT_OF_MEASUREMENT
@@ -1,4 +1,5 @@
"""Test the ThermoPro config flow."""
from unittest.mock import patch
from homeassistant import config_entries
@@ -1,4 +1,5 @@
"""Test the ThermoPro config flow."""
from homeassistant.components.sensor import ATTR_STATE_CLASS
from homeassistant.components.thermopro.const import DOMAIN
from homeassistant.const import ATTR_FRIENDLY_NAME, ATTR_UNIT_OF_MEASUREMENT
@@ -1,4 +1,5 @@
"""Test the Thread config flow."""
from ipaddress import ip_address
from unittest.mock import patch
@@ -1,4 +1,5 @@
"""Test the Threshold config flow."""
from unittest.mock import patch
import pytest
@@ -1,4 +1,5 @@
"""Tests for Tibber config flow."""
from asyncio import TimeoutError
from unittest.mock import AsyncMock, MagicMock, PropertyMock, patch
@@ -1,4 +1,5 @@
"""Test the Netatmo diagnostics."""
from unittest.mock import patch
from homeassistant.components.recorder import Recorder
@@ -1,4 +1,5 @@
"""Test adding external statistics from Tibber."""
from unittest.mock import AsyncMock
from homeassistant.components.recorder import Recorder
@@ -1,4 +1,5 @@
"""Define tests for the Tile config flow."""
from unittest.mock import AsyncMock, patch
import pytest
@@ -1,4 +1,5 @@
"""Test Tile diagnostics."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant
@@ -1,4 +1,5 @@
"""Test the Tilt config flow."""
from unittest.mock import patch
from homeassistant import config_entries
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the time component."""
from datetime import time
from homeassistant.components.time import DOMAIN, SERVICE_SET_VALUE, TimeEntity
+1
View File
@@ -1,4 +1,5 @@
"""Fixtures for Time & Date integration tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
@@ -1,4 +1,5 @@
"""Test the Time & Date config flow."""
from __future__ import annotations
from unittest.mock import AsyncMock
+1
View File
@@ -1,4 +1,5 @@
"""The tests for the timer component."""
from datetime import timedelta
import logging
from unittest.mock import patch
@@ -1,4 +1,5 @@
"""Test Times of the Day Binary Sensor."""
from datetime import datetime, timedelta
from freezegun.api import FrozenDateTimeFactory
+1
View File
@@ -1,4 +1,5 @@
"""Test the Times of the Day config flow."""
from unittest.mock import patch
import pytest
+1
View File
@@ -1,4 +1,5 @@
"""Common fixtures for the todoist tests."""
from collections.abc import Generator
from http import HTTPStatus
from unittest.mock import AsyncMock, patch
@@ -1,4 +1,5 @@
"""Unit tests for the Todoist calendar platform."""
from datetime import timedelta
from http import HTTPStatus
from typing import Any
+1
View File
@@ -1,4 +1,5 @@
"""Unit tests for the Todoist integration."""
from http import HTTPStatus
from unittest.mock import AsyncMock
+1
View File
@@ -1,4 +1,5 @@
"""Unit tests for the Todoist todo platform."""
from typing import Any
from unittest.mock import AsyncMock
@@ -1,4 +1,5 @@
"""Tests for the TOLO Sauna config flow."""
from unittest.mock import Mock, patch
import pytest
@@ -1,4 +1,5 @@
"""The tests for the Tomato device tracker platform."""
from unittest import mock
import pytest
+1
View File
@@ -1,4 +1,5 @@
"""Constants for tomorrowio tests."""
from homeassistant.const import (
CONF_API_KEY,
CONF_LATITUDE,
@@ -1,4 +1,5 @@
"""Test the Tomorrow.io config flow."""
from unittest.mock import patch
from pytomorrowio.exceptions import (
+1
View File
@@ -1,4 +1,5 @@
"""Tests for Tomorrow.io init."""
from datetime import timedelta
from freezegun.api import FrozenDateTimeFactory
@@ -1,4 +1,5 @@
"""Tests for Tomorrow.io sensor entities."""
from __future__ import annotations
from datetime import datetime
@@ -1,4 +1,5 @@
"""Tests for Tomorrow.io weather entity."""
from __future__ import annotations
from datetime import datetime, timedelta
@@ -1,4 +1,5 @@
"""Tests for the Toon config flow."""
from http import HTTPStatus
from unittest.mock import patch
+1
View File
@@ -1,4 +1,5 @@
"""Common methods used across tests for TotalConnect."""
from unittest.mock import patch
from total_connect_client import ArmingState, ResultCode, ZoneStatus, ZoneType
@@ -1,4 +1,5 @@
"""Tests for the TotalConnect alarm control panel device."""
from datetime import timedelta
from unittest.mock import patch

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