Add empty line after module docstring [tests a-e] (#112708)

This commit is contained in:
Marc Mueller 2024-03-08 14:50:25 +01:00 committed by GitHub
parent c88b337600
commit 38adfbf1a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
577 changed files with 577 additions and 0 deletions

View file

@ -1,4 +1,5 @@
"""Common methods used across tests for Abode.""" """Common methods used across tests for Abode."""
from unittest.mock import patch from unittest.mock import patch
from homeassistant.components.abode import DOMAIN as ABODE_DOMAIN from homeassistant.components.abode import DOMAIN as ABODE_DOMAIN

View file

@ -1,4 +1,5 @@
"""Configuration for Abode tests.""" """Configuration for Abode tests."""
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 @@
"""Tests for the Abode alarm control panel device.""" """Tests for the Abode alarm control panel device."""
from unittest.mock import PropertyMock, patch from unittest.mock import PropertyMock, patch
from jaraco.abode.helpers import constants as CONST from jaraco.abode.helpers import constants as CONST

View file

@ -1,4 +1,5 @@
"""Tests for the Abode binary sensor device.""" """Tests for the Abode binary sensor device."""
from homeassistant.components.abode import ATTR_DEVICE_ID from homeassistant.components.abode import ATTR_DEVICE_ID
from homeassistant.components.abode.const import ATTRIBUTION from homeassistant.components.abode.const import ATTRIBUTION
from homeassistant.components.binary_sensor import ( from homeassistant.components.binary_sensor import (

View file

@ -1,4 +1,5 @@
"""Tests for the Abode camera device.""" """Tests for the Abode camera device."""
from unittest.mock import patch from unittest.mock import patch
from homeassistant.components.abode.const import DOMAIN as ABODE_DOMAIN from homeassistant.components.abode.const import DOMAIN as ABODE_DOMAIN

View file

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

View file

@ -1,4 +1,5 @@
"""Tests for the Abode cover device.""" """Tests for the Abode cover device."""
from unittest.mock import patch from unittest.mock import patch
from homeassistant.components.abode import ATTR_DEVICE_ID from homeassistant.components.abode import ATTR_DEVICE_ID

View file

@ -1,4 +1,5 @@
"""Tests for the Abode module.""" """Tests for the Abode module."""
from http import HTTPStatus from http import HTTPStatus
from unittest.mock import patch from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Tests for the Abode light device.""" """Tests for the Abode light device."""
from unittest.mock import patch from unittest.mock import patch
from homeassistant.components.abode import ATTR_DEVICE_ID from homeassistant.components.abode import ATTR_DEVICE_ID

View file

@ -1,4 +1,5 @@
"""Tests for the Abode lock device.""" """Tests for the Abode lock device."""
from unittest.mock import patch from unittest.mock import patch
from homeassistant.components.abode import ATTR_DEVICE_ID from homeassistant.components.abode import ATTR_DEVICE_ID

View file

@ -1,4 +1,5 @@
"""Tests for the Abode sensor device.""" """Tests for the Abode sensor device."""
from homeassistant.components.abode import ATTR_DEVICE_ID from homeassistant.components.abode import ATTR_DEVICE_ID
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN, SensorDeviceClass from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN, SensorDeviceClass
from homeassistant.const import ( from homeassistant.const import (

View file

@ -1,4 +1,5 @@
"""Tests for the Abode switch device.""" """Tests for the Abode switch device."""
from unittest.mock import patch from unittest.mock import patch
from homeassistant.components.abode import ( from homeassistant.components.abode import (

View file

@ -1,4 +1,5 @@
"""Define tests for the AccuWeather config flow.""" """Define tests for the AccuWeather config flow."""
from unittest.mock import PropertyMock, patch from unittest.mock import PropertyMock, patch
from accuweather import ApiError, InvalidApiKeyError, RequestsExceededError from accuweather import ApiError, InvalidApiKeyError, RequestsExceededError

View file

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

View file

@ -1,4 +1,5 @@
"""Test init of AccuWeather integration.""" """Test init of AccuWeather integration."""
from datetime import timedelta from datetime import timedelta
from unittest.mock import patch from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Test sensor of AccuWeather integration.""" """Test sensor of AccuWeather integration."""
from datetime import timedelta from datetime import timedelta
from unittest.mock import PropertyMock, patch from unittest.mock import PropertyMock, patch

View file

@ -1,4 +1,5 @@
"""Test weather of AccuWeather integration.""" """Test weather of AccuWeather integration."""
from datetime import timedelta from datetime import timedelta
from unittest.mock import PropertyMock, patch from unittest.mock import PropertyMock, patch

View file

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

View file

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

View file

@ -1,4 +1,5 @@
"""Fixtures for advantage_air.""" """Fixtures for advantage_air."""
from __future__ import annotations from __future__ import annotations
import pytest import pytest

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Binary Sensor Platform.""" """Test the Advantage Air Binary Sensor Platform."""
from datetime import timedelta from datetime import timedelta
from unittest.mock import AsyncMock from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air config flow.""" """Test the Advantage Air config flow."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
from advantage_air import ApiError from advantage_air import ApiError

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Cover Platform.""" """Test the Advantage Air Cover Platform."""
from unittest.mock import AsyncMock from unittest.mock import AsyncMock
from homeassistant.components.cover import ( from homeassistant.components.cover import (

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Diagnostics.""" """Test the Advantage Air Diagnostics."""
from unittest.mock import AsyncMock from unittest.mock import AsyncMock
from syrupy.assertion import SnapshotAssertion from syrupy.assertion import SnapshotAssertion

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Initialization.""" """Test the Advantage Air Initialization."""
from unittest.mock import AsyncMock from unittest.mock import AsyncMock
from advantage_air import ApiError from advantage_air import ApiError

View file

@ -1,4 +1,5 @@
"""Test the Advantage Air Sensor Platform.""" """Test the Advantage Air Sensor Platform."""
from datetime import timedelta from datetime import timedelta
from unittest.mock import AsyncMock from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test fixtures for aemet.""" """Test fixtures for aemet."""
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 @@
"""Define tests for the AEMET OpenData config flow.""" """Define tests for the AEMET OpenData config flow."""
from unittest.mock import AsyncMock, MagicMock, patch from unittest.mock import AsyncMock, MagicMock, patch
from aemet_opendata.exceptions import AuthError from aemet_opendata.exceptions import AuthError

View file

@ -1,4 +1,5 @@
"""Define tests for the AEMET OpenData coordinator.""" """Define tests for the AEMET OpenData coordinator."""
from unittest.mock import patch from unittest.mock import patch
from aemet_opendata.exceptions import AemetError from aemet_opendata.exceptions import AemetError

View file

@ -1,4 +1,5 @@
"""Define tests for the AEMET OpenData init.""" """Define tests for the AEMET OpenData init."""
from unittest.mock import patch from unittest.mock import patch
from aemet_opendata.exceptions import AemetTimeout from aemet_opendata.exceptions import AemetTimeout

View file

@ -1,4 +1,5 @@
"""Tests for the AEMET OpenData integration.""" """Tests for the AEMET OpenData integration."""
from typing import Any from typing import Any
from unittest.mock import patch from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Common fixtures for the AfterShip tests.""" """Common fixtures for the AfterShip tests."""
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 @@
"""Test AfterShip config flow.""" """Test AfterShip config flow."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
from pyaftership import AfterShipException from pyaftership import AfterShipException

View file

@ -1,4 +1,5 @@
"""Test fixtures for Agent DVR.""" """Test fixtures for Agent DVR."""
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 @@
"""Test Agent DVR integration.""" """Test Agent DVR integration."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
from agent import AgentError from agent import AgentError

View file

@ -1,4 +1,5 @@
"""Define tests for the Airly config flow.""" """Define tests for the Airly config flow."""
from http import HTTPStatus from http import HTTPStatus
from airly.exceptions import AirlyError from airly.exceptions import AirlyError

View file

@ -1,4 +1,5 @@
"""Test init of Airly integration.""" """Test init of Airly integration."""
from typing import Any from typing import Any
from freezegun.api import FrozenDateTimeFactory from freezegun.api import FrozenDateTimeFactory

View file

@ -1,4 +1,5 @@
"""Test sensor of Airly integration.""" """Test sensor of Airly integration."""
from datetime import timedelta from datetime import timedelta
from http import HTTPStatus from http import HTTPStatus
from unittest.mock import patch from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Test the AirNow config flow.""" """Test the AirNow config flow."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
from pyairnow.errors import AirNowError, EmptyResponseError, InvalidKeyError from pyairnow.errors import AirNowError, EmptyResponseError, InvalidKeyError

View file

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

View file

@ -1,4 +1,5 @@
"""Test fixtures for air-Q.""" """Test fixtures for air-Q."""
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 @@
"""Test the air-Q config flow.""" """Test the air-Q config flow."""
from unittest.mock import patch from unittest.mock import patch
from aioairq import DeviceInfo, InvalidAuth from aioairq import DeviceInfo, InvalidAuth

View file

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

View file

@ -1,4 +1,5 @@
"""Test the Airthings BLE config flow.""" """Test the Airthings BLE config flow."""
from unittest.mock import patch from unittest.mock import patch
from airthings_ble import AirthingsDevice from airthings_ble import AirthingsDevice

View file

@ -1,4 +1,5 @@
"""Test the AirTouch 4 config flow.""" """Test the AirTouch 4 config flow."""
from unittest.mock import AsyncMock, Mock, patch from unittest.mock import AsyncMock, Mock, patch
from airtouch4pyapi.airtouch import AirTouch, AirTouchAc, AirTouchGroup, AirTouchStatus from airtouch4pyapi.airtouch import AirTouch, AirTouchAc, AirTouchGroup, AirTouchStatus

View file

@ -1,4 +1,5 @@
"""Common fixtures for the Airtouch 5 tests.""" """Common fixtures for the Airtouch 5 tests."""
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 @@
"""Test the Airtouch 5 config flow.""" """Test the Airtouch 5 config flow."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
import pytest import pytest

View file

@ -1,4 +1,5 @@
"""Define test fixtures for AirVisual.""" """Define test fixtures for AirVisual."""
from collections.abc import Generator from collections.abc import Generator
import json import json
from unittest.mock import AsyncMock, Mock, patch from unittest.mock import AsyncMock, Mock, patch

View file

@ -1,4 +1,5 @@
"""Define tests for the AirVisual config flow.""" """Define tests for the AirVisual config flow."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
from pyairvisual.cloud_api import ( from pyairvisual.cloud_api import (

View file

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

View file

@ -1,4 +1,5 @@
"""Define tests for AirVisual init.""" """Define tests for AirVisual init."""
from unittest.mock import patch from unittest.mock import patch
from homeassistant.components.airvisual import ( from homeassistant.components.airvisual import (

View file

@ -1,4 +1,5 @@
"""Define test fixtures for AirVisual Pro.""" """Define test fixtures for AirVisual Pro."""
from collections.abc import Generator from collections.abc import Generator
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 the AirVisual Pro config flow.""" """Test the AirVisual Pro config flow."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
from pyairvisual.node import ( from pyairvisual.node import (

View file

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

View file

@ -1,4 +1,5 @@
"""The water heater tests for the Airzone platform.""" """The water heater tests for the Airzone platform."""
from unittest.mock import patch from unittest.mock import patch
from aioairzone.const import ( from aioairzone.const import (

View file

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

View file

@ -1,4 +1,5 @@
"""Fixtures for the Aladdin Connect integration tests.""" """Fixtures for the Aladdin Connect integration tests."""
from unittest import mock from unittest import mock
from unittest.mock import AsyncMock from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test the Aladdin Connect config flow.""" """Test the Aladdin Connect config flow."""
from unittest.mock import MagicMock, patch from unittest.mock import MagicMock, patch
from AIOAladdinConnect.session_manager import InvalidPasswordError from AIOAladdinConnect.session_manager import InvalidPasswordError

View file

@ -1,4 +1,5 @@
"""Test the Aladdin Connect Cover.""" """Test the Aladdin Connect Cover."""
from unittest.mock import AsyncMock, MagicMock, patch from unittest.mock import AsyncMock, MagicMock, patch
from AIOAladdinConnect import session_manager from AIOAladdinConnect import session_manager

View file

@ -1,4 +1,5 @@
"""Test AccuWeather diagnostics.""" """Test AccuWeather diagnostics."""
from unittest.mock import MagicMock, patch from unittest.mock import MagicMock, patch
from syrupy import SnapshotAssertion from syrupy import SnapshotAssertion

View file

@ -1,4 +1,5 @@
"""Test for Aladdin Connect init logic.""" """Test for Aladdin Connect init logic."""
from unittest.mock import MagicMock, patch from unittest.mock import MagicMock, patch
from AIOAladdinConnect.session_manager import InvalidPasswordError from AIOAladdinConnect.session_manager import InvalidPasswordError

View file

@ -1,4 +1,5 @@
"""Test the Aladdin Connect model class.""" """Test the Aladdin Connect model class."""
from homeassistant.components.aladdin_connect.model import DoorDevice from homeassistant.components.aladdin_connect.model import DoorDevice
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Test the Aladdin Connect Sensors.""" """Test the Aladdin Connect Sensors."""
from datetime import timedelta from datetime import timedelta
from unittest.mock import AsyncMock, MagicMock, patch from unittest.mock import AsyncMock, MagicMock, patch

View file

@ -3,6 +3,7 @@
All containing methods are legacy helpers that should not be used by new All containing methods are legacy helpers that should not be used by new
components. Instead call the service directly. components. Instead call the service directly.
""" """
from homeassistant.components.alarm_control_panel import DOMAIN from homeassistant.components.alarm_control_panel import DOMAIN
from homeassistant.const import ( from homeassistant.const import (
ATTR_CODE, ATTR_CODE,

View file

@ -1,4 +1,5 @@
"""The tests for Alarm control panel device triggers.""" """The tests for Alarm control panel device triggers."""
from datetime import timedelta from datetime import timedelta
import pytest import pytest

View file

@ -1,4 +1,5 @@
"""Test the AlarmDecoder config flow.""" """Test the AlarmDecoder config flow."""
from unittest.mock import patch from unittest.mock import patch
from alarmdecoder.util import NoDeviceError from alarmdecoder.util import NoDeviceError

View file

@ -1,4 +1,5 @@
"""Test Alexa auth endpoints.""" """Test Alexa auth endpoints."""
from homeassistant.components.alexa.auth import Auth from homeassistant.components.alexa.auth import Auth
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant

View file

@ -1,4 +1,5 @@
"""Test Alexa capabilities.""" """Test Alexa capabilities."""
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 helpers for the Alexa integration.""" """Test helpers for the Alexa integration."""
from unittest.mock import Mock from unittest.mock import Mock
from uuid import uuid4 from uuid import uuid4

View file

@ -1,4 +1,5 @@
"""Test Alexa entity representation.""" """Test Alexa entity representation."""
from typing import Any from typing import Any
from unittest.mock import patch from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Tests for alexa.""" """Tests for alexa."""
from homeassistant.components.alexa.const import EVENT_ALEXA_SMART_HOME from homeassistant.components.alexa.const import EVENT_ALEXA_SMART_HOME
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component from homeassistant.setup import async_setup_component

View file

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

View file

@ -1,4 +1,5 @@
"""Test for smart home alexa support.""" """Test for smart home alexa support."""
from typing import Any from typing import Any
from unittest.mock import AsyncMock, MagicMock, patch from unittest.mock import AsyncMock, MagicMock, patch

View file

@ -1,4 +1,5 @@
"""Test Smart Home HTTP endpoints.""" """Test Smart Home HTTP endpoints."""
from http import HTTPStatus from http import HTTPStatus
import json import json
import logging import logging

View file

@ -1,4 +1,5 @@
"""Provide common Amber fixtures.""" """Provide common Amber fixtures."""
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 @@
"""Test the Amber Electric Sensors.""" """Test the Amber Electric Sensors."""
from __future__ import annotations from __future__ import annotations
from collections.abc import AsyncGenerator from collections.abc import AsyncGenerator

View file

@ -1,4 +1,5 @@
"""Tests for the Amber Electric Data Coordinator.""" """Tests for the Amber Electric Data Coordinator."""
from __future__ import annotations from __future__ import annotations
from collections.abc import Generator from collections.abc import Generator

View file

@ -1,4 +1,5 @@
"""Test the Amber Electric Sensors.""" """Test the Amber Electric Sensors."""
from collections.abc import AsyncGenerator from collections.abc import AsyncGenerator
from unittest.mock import Mock, patch from unittest.mock import Mock, patch

View file

@ -1,4 +1,5 @@
"""Tests for the Ambiclimate config flow.""" """Tests for the Ambiclimate config flow."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
import ambiclimate import ambiclimate

View file

@ -1,4 +1,5 @@
"""Define tests for the Ambient PWS config flow.""" """Define tests for the Ambient PWS config flow."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
from aioambient.errors import AmbientError from aioambient.errors import AmbientError

View file

@ -1,4 +1,5 @@
"""Test Ambient PWS diagnostics.""" """Test Ambient PWS diagnostics."""
from syrupy import SnapshotAssertion from syrupy import SnapshotAssertion
from homeassistant.components.ambient_station import DOMAIN from homeassistant.components.ambient_station import DOMAIN

View file

@ -1,4 +1,5 @@
"""The tests for the analytics .""" """The tests for the analytics ."""
from collections.abc import Generator from collections.abc import Generator
from typing import Any from typing import Any
from unittest.mock import AsyncMock, Mock, PropertyMock, patch from unittest.mock import AsyncMock, Mock, PropertyMock, patch

View file

@ -1,4 +1,5 @@
"""The tests for the analytics .""" """The tests for the analytics ."""
from unittest.mock import patch from unittest.mock import patch
from homeassistant.components.analytics.const import ANALYTICS_ENDPOINT_URL, DOMAIN from homeassistant.components.analytics.const import ANALYTICS_ENDPOINT_URL, DOMAIN

View file

@ -1,4 +1,5 @@
"""Common fixtures for the Homeassistant Analytics tests.""" """Common fixtures for the Homeassistant Analytics tests."""
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 @@
"""Test the Homeassistant Analytics config flow.""" """Test the Homeassistant Analytics config flow."""
from typing import Any from typing import Any
from unittest.mock import AsyncMock from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test the Home Assistant analytics init module.""" """Test the Home Assistant analytics init module."""
from __future__ import annotations from __future__ import annotations
from unittest.mock import AsyncMock from unittest.mock import AsyncMock

View file

@ -1,4 +1,5 @@
"""Test the Home Assistant analytics sensor module.""" """Test the Home Assistant analytics sensor module."""
from datetime import timedelta from datetime import timedelta
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Fixtures for tests.""" """Fixtures for tests."""
from http import HTTPStatus from http import HTTPStatus
import pytest import pytest

View file

@ -1,4 +1,5 @@
"""Test the Android IP Webcam config flow.""" """Test the Android IP Webcam config flow."""
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
import aiohttp import aiohttp

View file

@ -1,4 +1,5 @@
"""Define patches used for androidtv tests.""" """Define patches used for androidtv tests."""
from unittest.mock import patch from unittest.mock import patch
from androidtv.constants import CMD_DEVICE_PROPERTIES, CMD_MAC_ETH0, CMD_MAC_WLAN0 from androidtv.constants import CMD_DEVICE_PROPERTIES, CMD_MAC_ETH0, CMD_MAC_WLAN0

View file

@ -1,4 +1,5 @@
"""Tests for the AndroidTV config flow.""" """Tests for the AndroidTV config flow."""
from typing import Any from typing import Any
from unittest.mock import patch from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""The tests for the androidtv platform.""" """The tests for the androidtv platform."""
from datetime import timedelta from datetime import timedelta
import logging import logging
from typing import Any from typing import Any

View file

@ -1,4 +1,5 @@
"""Fixtures for the Android TV Remote integration tests.""" """Fixtures for the Android TV Remote integration tests."""
from collections.abc import Callable, Generator from collections.abc import Callable, Generator
from unittest.mock import AsyncMock, MagicMock, patch from unittest.mock import AsyncMock, MagicMock, patch

View file

@ -1,4 +1,5 @@
"""Test the Android TV Remote config flow.""" """Test the Android TV Remote config flow."""
from ipaddress import ip_address from ipaddress import ip_address
from unittest.mock import AsyncMock, MagicMock from unittest.mock import AsyncMock, MagicMock

View file

@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the Android TV Remote integration.""" """Tests for the diagnostics data provided by the Android TV Remote integration."""
from unittest.mock import MagicMock from unittest.mock import MagicMock
from syrupy.assertion import SnapshotAssertion from syrupy.assertion import SnapshotAssertion

View file

@ -1,4 +1,5 @@
"""Tests for the Android TV Remote integration.""" """Tests for the Android TV Remote integration."""
from collections.abc import Callable from collections.abc import Callable
from unittest.mock import AsyncMock, MagicMock from unittest.mock import AsyncMock, MagicMock

View file

@ -1,4 +1,5 @@
"""Tests for the Android TV Remote remote platform.""" """Tests for the Android TV Remote remote platform."""
from unittest.mock import MagicMock, call from unittest.mock import MagicMock, call
from androidtvremote2 import ConnectionClosed from androidtvremote2 import ConnectionClosed

View file

@ -1,4 +1,5 @@
"""Tests for the Android TV Remote remote platform.""" """Tests for the Android TV Remote remote platform."""
from unittest.mock import MagicMock, call from unittest.mock import MagicMock, call
from androidtvremote2 import ConnectionClosed from androidtvremote2 import ConnectionClosed

View file

@ -1,4 +1,5 @@
"""Common fixtures for Anova.""" """Common fixtures for Anova."""
from unittest.mock import AsyncMock, patch from unittest.mock import AsyncMock, patch
from anova_wifi import AnovaApi, AnovaPrecisionCooker, InvalidLogin, NoDevicesFound from anova_wifi import AnovaApi, AnovaPrecisionCooker, InvalidLogin, NoDevicesFound

View file

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

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