mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Add empty line after module docstring [tests q-s] (#112711)
This commit is contained in:
parent
87165c0d6e
commit
7d6251ca08
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for testing qBittorrent component."""
|
"""Fixtures for testing qBittorrent component."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Qingping binary sensors."""
|
"""Test the Qingping binary sensors."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Qingping config flow."""
|
"""Test the Qingping config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Qingping sensors."""
|
"""Test the Qingping sensors."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Setup the QNAP tests."""
|
"""Setup the QNAP tests."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the QNAP config flow."""
|
"""Test the QNAP config flow."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the RabbitAir config flow."""
|
"""Test the RabbitAir config flow."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Rachio config flow."""
|
"""Test the Rachio config flow."""
|
||||||
|
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for Radarr calendar platform."""
|
"""The tests for Radarr calendar platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Radarr config flow."""
|
"""Test Radarr config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from aiopyarr import exceptions
|
from aiopyarr import exceptions
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for the Radio Browser integration tests."""
|
"""Fixtures for the Radio Browser integration tests."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Radio Browser config flow."""
|
"""Test the Radio Browser config flow."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
from homeassistant.components.radio_browser.const import DOMAIN
|
from homeassistant.components.radio_browser.const import DOMAIN
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Conftest for rainforest_eagle."""
|
"""Conftest for rainforest_eagle."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, Mock, patch
|
from unittest.mock import AsyncMock, Mock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Rainforest Eagle config flow."""
|
"""Test the Rainforest Eagle config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Rainforest Eagle diagnostics."""
|
"""Test the Rainforest Eagle diagnostics."""
|
||||||
|
|
||||||
from homeassistant.components.diagnostics import REDACTED
|
from homeassistant.components.diagnostics import REDACTED
|
||||||
from homeassistant.components.rainforest_eagle.const import (
|
from homeassistant.components.rainforest_eagle.const import (
|
||||||
CONF_CLOUD_ID,
|
CONF_CLOUD_ID,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for rainforest eagle sensors."""
|
"""Tests for rainforest eagle sensors."""
|
||||||
|
|
||||||
from homeassistant.components.rainforest_eagle.const import DOMAIN
|
from homeassistant.components.rainforest_eagle.const import DOMAIN
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Rainforest RAVEn config flow."""
|
"""Test Rainforest RAVEn config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from aioraven.device import RAVEnConnectionError
|
from aioraven.device import RAVEnConnectionError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the Rainforest RAVEn data coordinator."""
|
"""Tests for the Rainforest RAVEn data coordinator."""
|
||||||
|
|
||||||
from aioraven.device import RAVEnConnectionError
|
from aioraven.device import RAVEnConnectionError
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Rainforest Eagle diagnostics."""
|
"""Test the Rainforest Eagle diagnostics."""
|
||||||
|
|
||||||
from dataclasses import asdict
|
from dataclasses import asdict
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Define tests for the OpenUV config flow."""
|
"""Define tests for the OpenUV config flow."""
|
||||||
|
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test RainMachine diagnostics."""
|
"""Test RainMachine diagnostics."""
|
||||||
|
|
||||||
from regenmaschine.errors import RainMachineError
|
from regenmaschine.errors import RainMachineError
|
||||||
|
|
||||||
from homeassistant.components.diagnostics import REDACTED
|
from homeassistant.components.diagnostics import REDACTED
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The test for the Random binary sensor platform."""
|
"""The test for the Random binary sensor platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Random config flow."""
|
"""Test the Random config flow."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The test for the random number sensor platform."""
|
"""The test for the random number sensor platform."""
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the RAPT config flow."""
|
"""Test the RAPT config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Raspberry Pi config flow."""
|
"""Test the Raspberry Pi config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant.components.raspberry_pi.const import DOMAIN
|
from homeassistant.components.raspberry_pi.const import DOMAIN
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Raspberry Pi hardware platform."""
|
"""Test the Raspberry Pi hardware platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Raspberry Pi integration."""
|
"""Test the Raspberry Pi integration."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for RDW integration tests."""
|
"""Fixtures for RDW integration tests."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the sensors provided by the RDW integration."""
|
"""Tests for the sensors provided by the RDW integration."""
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||||
from homeassistant.components.rdw.const import DOMAIN
|
from homeassistant.components.rdw.const import DOMAIN
|
||||||
from homeassistant.const import ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, ATTR_ICON
|
from homeassistant.const import ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, ATTR_ICON
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the diagnostics data provided by the RDW integration."""
|
"""Tests for the diagnostics data provided by the RDW integration."""
|
||||||
|
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the RDW integration."""
|
"""Tests for the RDW integration."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
|
||||||
from homeassistant.components.rdw.const import DOMAIN
|
from homeassistant.components.rdw.const import DOMAIN
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the sensors provided by the RDW integration."""
|
"""Tests for the sensors provided by the RDW integration."""
|
||||||
|
|
||||||
from homeassistant.components.rdw.const import DOMAIN
|
from homeassistant.components.rdw.const import DOMAIN
|
||||||
from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorDeviceClass
|
from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorDeviceClass
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Define test fixtures for ReCollect Waste."""
|
"""Define test fixtures for ReCollect Waste."""
|
||||||
|
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from unittest.mock import AsyncMock, Mock, patch
|
from unittest.mock import AsyncMock, Mock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Define tests for the ReCollect Waste config flow."""
|
"""Define tests for the ReCollect Waste config flow."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
from aiorecollect.errors import RecollectError
|
from aiorecollect.errors import RecollectError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test ReCollect Waste diagnostics."""
|
"""Test ReCollect Waste diagnostics."""
|
||||||
|
|
||||||
from homeassistant.components.diagnostics import REDACTED
|
from homeassistant.components.diagnostics import REDACTED
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test removing statistics duplicates."""
|
"""Test removing statistics duplicates."""
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
import importlib
|
import importlib
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Common test utils for working with recorder."""
|
"""Common test utils for working with recorder."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
@ -5,6 +5,7 @@ used by Home Assistant Core 2021.11.0, which adds the name column
|
|||||||
to statistics_meta.
|
to statistics_meta.
|
||||||
It is used to test the schema migration logic.
|
It is used to test the schema migration logic.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
@ -9,6 +9,7 @@ allow the recorder to startup successfully.
|
|||||||
|
|
||||||
It is used to test the schema migration logic.
|
It is used to test the schema migration logic.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Models for SQLAlchemy."""
|
"""Models for SQLAlchemy."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
This file contains the model definitions for schema version 28.
|
This file contains the model definitions for schema version 28.
|
||||||
It is used to test the schema migration logic.
|
It is used to test the schema migration logic.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
This file contains the model definitions for schema version 30.
|
This file contains the model definitions for schema version 30.
|
||||||
It is used to test the schema migration logic.
|
It is used to test the schema migration logic.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
This file contains the model definitions for schema version 30.
|
This file contains the model definitions for schema version 30.
|
||||||
It is used to test the schema migration logic.
|
It is used to test the schema migration logic.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test recorder runs table manager."""
|
"""Test recorder runs table manager."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Recorder component."""
|
"""The tests for the Recorder component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test backup platform for the Recorder integration."""
|
"""Test backup platform for the Recorder integration."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for sensor recorder platform."""
|
"""The tests for sensor recorder platform."""
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests the History component."""
|
"""The tests the History component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests the History component."""
|
"""The tests the History component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests the History component."""
|
"""The tests the History component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Recorder component."""
|
"""The tests for the Recorder component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Recorder component."""
|
"""The tests for the Recorder component."""
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from unittest.mock import PropertyMock
|
from unittest.mock import PropertyMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Recorder component legacy models."""
|
"""The tests for the Recorder component legacy models."""
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from unittest.mock import PropertyMock
|
from unittest.mock import PropertyMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test data purging."""
|
"""Test data purging."""
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
import json
|
import json
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for sensor recorder platform."""
|
"""The tests for sensor recorder platform."""
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
The v23 schema used for these tests has been slightly modified to add the
|
The v23 schema used for these tests has been slightly modified to add the
|
||||||
EventData table to allow the recorder to startup successfully.
|
EventData table to allow the recorder to startup successfully.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
import importlib
|
import importlib
|
||||||
import json
|
import json
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test recorder system health."""
|
"""Test recorder system health."""
|
||||||
|
|
||||||
from unittest.mock import ANY, Mock, patch
|
from unittest.mock import ANY, Mock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test util methods."""
|
"""Test util methods."""
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from datetime import UTC, datetime, timedelta
|
from datetime import UTC, datetime, timedelta
|
||||||
import os
|
import os
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for recorder platform migrating data from v30."""
|
"""The tests for recorder platform migrating data from v30."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import importlib
|
import importlib
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the Recovery Mode integration."""
|
"""Tests for the Recovery Mode integration."""
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Pytest module configuration."""
|
"""Pytest module configuration."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the refoss Integration."""
|
"""Tests for the refoss Integration."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
from homeassistant import config_entries, data_entry_flow
|
from homeassistant import config_entries, data_entry_flow
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the Remember The Milk component."""
|
"""Tests for the Remember The Milk component."""
|
||||||
|
|
||||||
from unittest.mock import Mock, mock_open, patch
|
from unittest.mock import Mock, mock_open, patch
|
||||||
|
|
||||||
import homeassistant.components.remember_the_milk as rtm
|
import homeassistant.components.remember_the_milk as rtm
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The test for remote device automation."""
|
"""The test for remote device automation."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The test for remote device automation."""
|
"""The test for remote device automation."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Remote significant change platform."""
|
"""Test the Remote significant change platform."""
|
||||||
|
|
||||||
from homeassistant.components.remote import ATTR_ACTIVITY_LIST, ATTR_CURRENT_ACTIVITY
|
from homeassistant.components.remote import ATTR_ACTIVITY_LIST, ATTR_CURRENT_ACTIVITY
|
||||||
from homeassistant.components.remote.significant_change import (
|
from homeassistant.components.remote.significant_change import (
|
||||||
async_check_significant_change,
|
async_check_significant_change,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Provide common Renault fixtures."""
|
"""Provide common Renault fixtures."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
import contextlib
|
import contextlib
|
||||||
from types import MappingProxyType
|
from types import MappingProxyType
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Constants for the Renault integration tests."""
|
"""Constants for the Renault integration tests."""
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||||
from homeassistant.components.renault.const import (
|
from homeassistant.components.renault.const import (
|
||||||
CONF_KAMEREON_ACCOUNT_ID,
|
CONF_KAMEREON_ACCOUNT_ID,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Renault binary sensors."""
|
"""Tests for Renault binary sensors."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Renault sensors."""
|
"""Tests for Renault sensors."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Renault config flow."""
|
"""Test the Renault config flow."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, PropertyMock, patch
|
from unittest.mock import AsyncMock, PropertyMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Renault sensors."""
|
"""Tests for Renault sensors."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Renault setup process."""
|
"""Tests for Renault setup process."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Renault selects."""
|
"""Tests for Renault selects."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Renault sensors."""
|
"""Tests for Renault sensors."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Renault sensors."""
|
"""Tests for Renault sensors."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Renson config flow."""
|
"""Test the Renson config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Setup the Reolink tests."""
|
"""Setup the Reolink tests."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Reolink config flow."""
|
"""Test the Reolink config flow."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import json
|
import json
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Reolink init."""
|
"""Test the Reolink init."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest.mock import AsyncMock, MagicMock, Mock, patch
|
from unittest.mock import AsyncMock, MagicMock, Mock, patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the Reolink media_source platform."""
|
"""Tests for the Reolink media_source platform."""
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
import logging
|
import logging
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the repairs websocket API."""
|
"""Test the repairs websocket API."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, Mock
|
from unittest.mock import AsyncMock, Mock
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the repairs websocket API."""
|
"""Test the repairs websocket API."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the rest.notify platform."""
|
"""The tests for the rest.notify platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import respx
|
import respx
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the REST sensor platform."""
|
"""The tests for the REST sensor platform."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
import ssl
|
import ssl
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the REST switch platform."""
|
"""The tests for the REST switch platform."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for the trend component tests."""
|
"""Fixtures for the trend component tests."""
|
||||||
|
|
||||||
from collections.abc import Awaitable, Callable
|
from collections.abc import Awaitable, Callable
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
"""rflink conftest."""
|
"""rflink conftest."""
|
||||||
|
|
||||||
from tests.components.light.conftest import mock_light_profiles # noqa: F401
|
from tests.components.light.conftest import mock_light_profiles # noqa: F401
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
Test setup of rflink sensor component/platform. Verify manual and
|
Test setup of rflink sensor component/platform. Verify manual and
|
||||||
automatic sensor creation.
|
automatic sensor creation.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
|
@ -4,6 +4,7 @@ Test setup of RFLink covers component/platform. State tracking and
|
|||||||
control of RFLink cover devices.
|
control of RFLink cover devices.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from homeassistant.components.rflink import EVENT_BUTTON_PRESSED
|
from homeassistant.components.rflink import EVENT_BUTTON_PRESSED
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
|
@ -4,6 +4,7 @@ Test setup of rflink sensor component/platform. Verify manual and
|
|||||||
automatic sensor creation.
|
automatic sensor creation.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from homeassistant.components.rflink import (
|
from homeassistant.components.rflink import (
|
||||||
CONF_RECONNECT_INTERVAL,
|
CONF_RECONNECT_INTERVAL,
|
||||||
DATA_ENTITY_LOOKUP,
|
DATA_ENTITY_LOOKUP,
|
||||||
|
@ -4,6 +4,7 @@ Test setup of rflink switch component/platform. State tracking and
|
|||||||
control of Rflink switch devices.
|
control of Rflink switch devices.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from homeassistant.components.rflink import EVENT_BUTTON_PRESSED
|
from homeassistant.components.rflink import EVENT_BUTTON_PRESSED
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test for RFLink utils methods."""
|
"""Test for RFLink utils methods."""
|
||||||
|
|
||||||
from homeassistant.components.rflink.utils import (
|
from homeassistant.components.rflink.utils import (
|
||||||
brightness_to_rflink,
|
brightness_to_rflink,
|
||||||
rflink_to_brightness,
|
rflink_to_brightness,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Common test tools."""
|
"""Common test tools."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Rfxtrx cover platform."""
|
"""The tests for the Rfxtrx cover platform."""
|
||||||
|
|
||||||
from unittest.mock import call
|
from unittest.mock import call
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for RFXCOM RFXtrx device actions."""
|
"""The tests for RFXCOM RFXtrx device actions."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any, NamedTuple
|
from typing import Any, NamedTuple
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for RFXCOM RFXtrx device triggers."""
|
"""The tests for RFXCOM RFXtrx device triggers."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any, NamedTuple
|
from typing import Any, NamedTuple
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Rfxtrx sensor platform."""
|
"""The tests for the Rfxtrx sensor platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Rfxtrx component."""
|
"""The tests for the Rfxtrx component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from unittest.mock import ANY, call
|
from unittest.mock import ANY, call
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user