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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
443 changed files with 443 additions and 0 deletions

View File

@ -1,4 +1,5 @@
"""The sensor tests for the tado platform."""
from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""The sensor tests for the tado platform."""
from homeassistant.core import HomeAssistant
from .util import async_init_integration

View File

@ -1,4 +1,5 @@
"""Test the Tado config flow."""
from http import HTTPStatus
from ipaddress import ip_address
from unittest.mock import MagicMock, patch

View File

@ -1,4 +1,5 @@
"""The sensor tests for the tado platform."""
from homeassistant.core import HomeAssistant
from .util import async_init_integration

View File

@ -1,4 +1,5 @@
"""The sensor tests for the tado platform."""
from homeassistant.core import HomeAssistant
from .util import async_init_integration

View File

@ -1,4 +1,5 @@
"""Fixtures for Tailscale integration tests."""
from __future__ import annotations
from collections.abc import Generator

View File

@ -1,4 +1,5 @@
"""Tests for the sensors provided by the Tailscale integration."""
from homeassistant.components.binary_sensor import (
STATE_OFF,
STATE_ON,

View File

@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the Tailscale integration."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""Tests for the Tailscale integration."""
from unittest.mock import MagicMock
from tailscale import TailscaleAuthenticationError, TailscaleConnectionError

View File

@ -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

View File

@ -1,4 +1,5 @@
"""Fixtures for the Tailwind integration tests."""
from __future__ import annotations
from collections.abc import Generator

View File

@ -1,4 +1,5 @@
"""Tests for button entities provided by the Tailwind integration."""
from unittest.mock import MagicMock
from gotailwind import TailwindError

View File

@ -1,4 +1,5 @@
"""Configuration flow tests for the Tailwind integration."""
from ipaddress import ip_address
from unittest.mock import MagicMock

View File

@ -1,4 +1,5 @@
"""Tests for cover entities provided by the Tailwind integration."""
from unittest.mock import ANY, MagicMock
from gotailwind import (

View File

@ -1,4 +1,5 @@
"""Integration tests for the Tailwind integration."""
from unittest.mock import MagicMock
from gotailwind import TailwindAuthenticationError, TailwindConnectionError

View File

@ -1,4 +1,5 @@
"""Tests for number entities provided by the Tailwind integration."""
from unittest.mock import MagicMock
from gotailwind import TailwindError

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for Tankerkoenig config flow."""
from unittest.mock import patch
from aiotankerkoenig.exceptions import TankerkoenigInvalidKeyError

View File

@ -1,4 +1,5 @@
"""Tests for the Tankerkoening integration."""
from __future__ import annotations
from datetime import timedelta

View File

@ -1,4 +1,5 @@
"""Tests for the Tankerkoening integration."""
from __future__ import annotations
import pytest

View File

@ -1,4 +1,5 @@
"""Test fixtures for Tasmota component."""
from unittest.mock import patch
from hatasmota.discovery import get_status_sensor_entities

View File

@ -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

View File

@ -1,4 +1,5 @@
"""Test Tautulli config flow."""
from unittest.mock import AsyncMock, patch
from pytautulli import exceptions

View File

@ -1,4 +1,5 @@
"""The tests for the TCP binary sensor platform."""
from datetime import timedelta
from unittest.mock import call, patch

View File

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

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for the TechnoVE binary sensor platform."""
from datetime import timedelta
from unittest.mock import MagicMock

View File

@ -1,4 +1,5 @@
"""Tests for the TechnoVE sensor platform."""
from datetime import timedelta
from unittest.mock import MagicMock

View File

@ -1,4 +1,5 @@
"""Tests for the TechnoVE switch platform."""
from unittest.mock import MagicMock
import pytest

View File

@ -1,4 +1,5 @@
"""Fixtures for Tedee integration tests."""
from __future__ import annotations
from collections.abc import Generator

View File

@ -1,4 +1,5 @@
"""Test the Tedee config flow."""
from unittest.mock import MagicMock
from pytedee_async import (

View File

@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the Tedee integration."""
from syrupy import SnapshotAssertion
from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""Test initialization of tedee."""
from unittest.mock import MagicMock
from pytedee_async.exception import TedeeAuthException, TedeeClientException

View File

@ -1,4 +1,5 @@
"""Tests for tedee lock."""
from datetime import timedelta
from unittest.mock import MagicMock

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

View File

@ -1,4 +1,5 @@
"""Tests for the telegram_bot integration."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""Test Telegram broadcast."""
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component

View File

@ -1,4 +1,5 @@
"""Tests for the telegram_bot component."""
from unittest.mock import AsyncMock, patch
from telegram import Update

View File

@ -1,5 +1,6 @@
# flake8: noqa pylint: skip-file
"""Tests for the TelldusLive config flow."""
from unittest.mock import Mock, patch
import pytest

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

View File

@ -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

View File

@ -1,4 +1,5 @@
"""Test the Switch config flow."""
from typing import Any
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""The tests for the Template cover platform."""
from typing import Any
import pytest

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

View File

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

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,

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,

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

View File

@ -1,4 +1,5 @@
"""The tests for the Template automation."""
from datetime import timedelta
from unittest import mock

View File

@ -1,4 +1,5 @@
"""The tests for the Template Weather platform."""
from typing import Any
import pytest

View File

@ -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

View File

@ -1,4 +1,5 @@
"""Tests for binary sensors."""
from homeassistant.core import HomeAssistant
from .conftest import (

View File

@ -1,4 +1,5 @@
"""Test the Tesla Wall Connector config flow."""
from unittest.mock import patch
from tesla_wall_connector.exceptions import WallConnectorConnectionError

View File

@ -1,4 +1,5 @@
"""Test the Tesla Wall Connector config flow."""
from tesla_wall_connector.exceptions import WallConnectorConnectionError
from homeassistant import config_entries

View File

@ -1,4 +1,5 @@
"""Tests for sensors."""
from homeassistant.core import HomeAssistant
from .conftest import (

View File

@ -1,4 +1,5 @@
"""Fixtures for Tessie."""
from __future__ import annotations
from copy import deepcopy

View File

@ -1,4 +1,5 @@
"""Test the Teslemetry sensor platform."""
from freezegun.api import FrozenDateTimeFactory
import pytest
from syrupy import SnapshotAssertion

View File

@ -1,4 +1,5 @@
"""Fixtures for Tessie."""
from __future__ import annotations
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test the Tessie button platform."""
from unittest.mock import patch
from syrupy import SnapshotAssertion

View File

@ -1,4 +1,5 @@
"""Test the Tessie climate platform."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""Test the Tessie sensor platform."""
from datetime import timedelta
from homeassistant.components.tessie import PLATFORMS

View File

@ -1,4 +1,5 @@
"""Test the Tessie cover platform."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""Test the Tessie select platform."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""Test the Tessie sensor platform."""
from freezegun.api import FrozenDateTimeFactory
import pytest
from syrupy import SnapshotAssertion

View File

@ -1,4 +1,5 @@
"""Test the Tessie switch platform."""
from unittest.mock import patch
from syrupy import SnapshotAssertion

View File

@ -1,4 +1,5 @@
"""Test the Tessie update platform."""
from unittest.mock import patch
from syrupy import SnapshotAssertion

View File

@ -1,4 +1,5 @@
"""The tests for the text component."""
from typing import Any
import pytest

View File

@ -1,4 +1,5 @@
"""The tests for text recorder."""
from __future__ import annotations
from datetime import timedelta

View File

@ -1,4 +1,5 @@
"""Test the ThermoBeacon config flow."""
from unittest.mock import patch
from homeassistant import config_entries

View File

@ -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

View File

@ -1,4 +1,5 @@
"""Test the ThermoPro config flow."""
from unittest.mock import patch
from homeassistant import config_entries

View File

@ -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

View File

@ -1,4 +1,5 @@
"""Test the Thread config flow."""
from ipaddress import ip_address
from unittest.mock import patch

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for Tibber config flow."""
from asyncio import TimeoutError
from unittest.mock import AsyncMock, MagicMock, PropertyMock, patch

View File

@ -1,4 +1,5 @@
"""Test the Netatmo diagnostics."""
from unittest.mock import patch
from homeassistant.components.recorder import Recorder

View File

@ -1,4 +1,5 @@
"""Test adding external statistics from Tibber."""
from unittest.mock import AsyncMock
from homeassistant.components.recorder import Recorder

View File

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

View File

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

View File

@ -1,4 +1,5 @@
"""Test the Tilt config flow."""
from unittest.mock import patch
from homeassistant import config_entries

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

View File

@ -1,4 +1,5 @@
"""Fixtures for Time & Date integration tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View File

@ -1,4 +1,5 @@
"""Test the Time & Date config flow."""
from __future__ import annotations
from unittest.mock import AsyncMock

View File

@ -1,4 +1,5 @@
"""The tests for the timer component."""
from datetime import timedelta
import logging
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test Times of the Day Binary Sensor."""
from datetime import datetime, timedelta
from freezegun.api import FrozenDateTimeFactory

View File

@ -1,4 +1,5 @@
"""Test the Times of the Day config flow."""
from unittest.mock import patch
import pytest

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

View File

@ -1,4 +1,5 @@
"""Unit tests for the Todoist calendar platform."""
from datetime import timedelta
from http import HTTPStatus
from typing import Any

View File

@ -1,4 +1,5 @@
"""Unit tests for the Todoist integration."""
from http import HTTPStatus
from unittest.mock import AsyncMock

View File

@ -1,4 +1,5 @@
"""Unit tests for the Todoist todo platform."""
from typing import Any
from unittest.mock import AsyncMock

View File

@ -1,4 +1,5 @@
"""Tests for the TOLO Sauna config flow."""
from unittest.mock import Mock, patch
import pytest

View File

@ -1,4 +1,5 @@
"""The tests for the Tomato device tracker platform."""
from unittest import mock
import pytest

View File

@ -1,4 +1,5 @@
"""Constants for tomorrowio tests."""
from homeassistant.const import (
CONF_API_KEY,
CONF_LATITUDE,

View File

@ -1,4 +1,5 @@
"""Test the Tomorrow.io config flow."""
from unittest.mock import patch
from pytomorrowio.exceptions import (

View File

@ -1,4 +1,5 @@
"""Tests for Tomorrow.io init."""
from datetime import timedelta
from freezegun.api import FrozenDateTimeFactory

View File

@ -1,4 +1,5 @@
"""Tests for Tomorrow.io sensor entities."""
from __future__ import annotations
from datetime import datetime

View File

@ -1,4 +1,5 @@
"""Tests for Tomorrow.io weather entity."""
from __future__ import annotations
from datetime import datetime, timedelta

View File

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

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

View File

@ -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