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

View File

@ -1,4 +1,5 @@
"""Fixtures for testing qBittorrent component."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View File

@ -1,4 +1,5 @@
"""Test the Qingping binary sensors."""
from datetime import timedelta
import time

View File

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

View File

@ -1,4 +1,5 @@
"""Test the Qingping sensors."""
from datetime import timedelta
import time

View File

@ -1,4 +1,5 @@
"""Setup the QNAP tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, patch

View File

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

View File

@ -1,4 +1,5 @@
"""Test the RabbitAir config flow."""
from __future__ import annotations
from collections.abc import Generator

View File

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

View File

@ -1,4 +1,5 @@
"""The tests for Radarr calendar platform."""
from datetime import timedelta
from freezegun.api import FrozenDateTimeFactory

View File

@ -1,4 +1,5 @@
"""Test Radarr config flow."""
from unittest.mock import patch
from aiopyarr import exceptions

View File

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

View File

@ -1,4 +1,5 @@
"""Test the Radio Browser config flow."""
from unittest.mock import AsyncMock
from homeassistant.components.radio_browser.const import DOMAIN

View File

@ -1,4 +1,5 @@
"""Conftest for rainforest_eagle."""
from unittest.mock import AsyncMock, Mock, patch
import pytest

View File

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

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for rainforest eagle sensors."""
from homeassistant.components.rainforest_eagle.const import DOMAIN
from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""Test Rainforest RAVEn config flow."""
from unittest.mock import patch
from aioraven.device import RAVEnConnectionError

View File

@ -1,4 +1,5 @@
"""Tests for the Rainforest RAVEn data coordinator."""
from aioraven.device import RAVEnConnectionError
import pytest

View File

@ -1,4 +1,5 @@
"""Test the Rainforest Eagle diagnostics."""
from dataclasses import asdict
import pytest

View File

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

View File

@ -1,4 +1,5 @@
"""Test RainMachine diagnostics."""
from regenmaschine.errors import RainMachineError
from homeassistant.components.diagnostics import REDACTED

View File

@ -1,4 +1,5 @@
"""The test for the Random binary sensor platform."""
from unittest.mock import patch
from homeassistant.core import HomeAssistant

View File

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

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

View File

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

View File

@ -1,4 +1,5 @@
"""Test the Raspberry Pi config flow."""
from unittest.mock import patch
from homeassistant.components.raspberry_pi.const import DOMAIN

View File

@ -1,4 +1,5 @@
"""Test the Raspberry Pi hardware platform."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""Test the Raspberry Pi integration."""
from unittest.mock import patch
import pytest

View File

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

View File

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

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

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

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 (

View File

@ -1,4 +1,5 @@
"""Define test fixtures for ReCollect Waste."""
from datetime import date
from unittest.mock import AsyncMock, Mock, patch

View File

@ -1,4 +1,5 @@
"""Define tests for the ReCollect Waste config flow."""
from unittest.mock import AsyncMock, patch
from aiorecollect.errors import RecollectError

View File

@ -1,4 +1,5 @@
"""Test ReCollect Waste diagnostics."""
from homeassistant.components.diagnostics import REDACTED
from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""Test removing statistics duplicates."""
from collections.abc import Callable
import importlib
from pathlib import Path

View File

@ -1,4 +1,5 @@
"""Common test utils for working with recorder."""
from __future__ import annotations
import asyncio

View File

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

View File

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

View File

@ -1,4 +1,5 @@
"""Models for SQLAlchemy."""
from __future__ import annotations
from datetime import datetime, timedelta

View File

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

View File

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

View File

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

View File

@ -1,4 +1,5 @@
"""Test recorder runs table manager."""
from datetime import timedelta
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""The tests for the Recorder component."""
from __future__ import annotations
import pytest

View File

@ -1,4 +1,5 @@
"""Test backup platform for the Recorder integration."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""The tests for sensor recorder platform."""
from collections.abc import Callable
import pytest

View File

@ -1,4 +1,5 @@
"""The tests the History component."""
from __future__ import annotations
from collections.abc import Callable

View File

@ -1,4 +1,5 @@
"""The tests the History component."""
from __future__ import annotations
from collections.abc import Callable

View File

@ -1,4 +1,5 @@
"""The tests the History component."""
from __future__ import annotations
from collections.abc import Callable

View File

@ -1,4 +1,5 @@
"""The tests for the Recorder component."""
from __future__ import annotations
import asyncio

View File

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

View File

@ -1,4 +1,5 @@
"""The tests for the Recorder component legacy models."""
from datetime import datetime, timedelta
from unittest.mock import PropertyMock

View File

@ -1,4 +1,5 @@
"""Test data purging."""
from datetime import datetime, timedelta
import json
import sqlite3

View File

@ -1,4 +1,5 @@
"""The tests for sensor recorder platform."""
from collections.abc import Callable
from datetime import timedelta
from unittest.mock import patch

View File

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

View File

@ -1,4 +1,5 @@
"""Test recorder system health."""
from unittest.mock import ANY, Mock, patch
import pytest

View File

@ -1,4 +1,5 @@
"""Test util methods."""
from collections.abc import Callable
from datetime import UTC, datetime, timedelta
import os

View File

@ -1,4 +1,5 @@
"""The tests for recorder platform migrating data from v30."""
from datetime import timedelta
import importlib
from pathlib import Path

View File

@ -1,4 +1,5 @@
"""Tests for the Recovery Mode integration."""
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component

View File

@ -1,4 +1,5 @@
"""Pytest module configuration."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View File

@ -1,4 +1,5 @@
"""Tests for the refoss Integration."""
from unittest.mock import AsyncMock, patch
from homeassistant import config_entries, data_entry_flow

View File

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

View File

@ -1,4 +1,5 @@
"""The test for remote device automation."""
from datetime import timedelta
from freezegun import freeze_time

View File

@ -1,4 +1,5 @@
"""The test for remote device automation."""
from datetime import timedelta
import pytest

View File

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

View File

@ -1,4 +1,5 @@
"""Provide common Renault fixtures."""
from collections.abc import Generator
import contextlib
from types import MappingProxyType

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,

View File

@ -1,4 +1,5 @@
"""Tests for Renault binary sensors."""
from collections.abc import Generator
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests for Renault sensors."""
from collections.abc import Generator
from unittest.mock import patch

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for Renault sensors."""
from collections.abc import Generator
from unittest.mock import patch

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

View File

@ -1,4 +1,5 @@
"""Tests for Renault selects."""
from collections.abc import Generator
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests for Renault sensors."""
from collections.abc import Generator
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests for Renault sensors."""
from collections.abc import Generator
from datetime import datetime
from unittest.mock import patch

View File

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

View File

@ -1,4 +1,5 @@
"""Setup the Reolink tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, patch

View File

@ -1,4 +1,5 @@
"""Test the Reolink config flow."""
from datetime import timedelta
import json
from typing import Any

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

View File

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

View File

@ -1,4 +1,5 @@
"""Test the repairs websocket API."""
from unittest.mock import AsyncMock, Mock
from freezegun.api import FrozenDateTimeFactory

View File

@ -1,4 +1,5 @@
"""Test the repairs websocket API."""
from __future__ import annotations
from http import HTTPStatus

View File

@ -1,4 +1,5 @@
"""The tests for the rest.notify platform."""
from unittest.mock import patch
import respx

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

View File

@ -1,4 +1,5 @@
"""The tests for the REST switch platform."""
from http import HTTPStatus
import httpx

View File

@ -1,4 +1,5 @@
"""Fixtures for the trend component tests."""
from collections.abc import Awaitable, Callable
from typing import Any

View File

@ -1,2 +1,3 @@
"""rflink conftest."""
from tests.components.light.conftest import mock_light_profiles # noqa: F401

View File

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

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,

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,

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,

View File

@ -1,4 +1,5 @@
"""Test for RFLink utils methods."""
from homeassistant.components.rflink.utils import (
brightness_to_rflink,
rflink_to_brightness,

View File

@ -1,4 +1,5 @@
"""Common test tools."""
from __future__ import annotations
from unittest.mock import Mock, patch

View File

@ -1,4 +1,5 @@
"""The tests for the Rfxtrx cover platform."""
from unittest.mock import call
import pytest

View File

@ -1,4 +1,5 @@
"""The tests for RFXCOM RFXtrx device actions."""
from __future__ import annotations
from typing import Any, NamedTuple

View File

@ -1,4 +1,5 @@
"""The tests for RFXCOM RFXtrx device triggers."""
from __future__ import annotations
from typing import Any, NamedTuple

View File

@ -1,4 +1,5 @@
"""The tests for the Rfxtrx sensor platform."""
from unittest.mock import patch
from freezegun.api import FrozenDateTimeFactory

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