Add empty line after module docstring [tests q-s] (#112711)

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

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