Add empty line after module docstring [tests f-k] (#112709)

pull/112725/head
Marc Mueller 2024-03-08 14:50:04 +01:00 committed by GitHub
parent 7d6251ca08
commit c88b337600
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
528 changed files with 528 additions and 0 deletions

View File

@ -1,4 +1,5 @@
"""Test the FAA Delays config flow."""
from unittest.mock import patch
from aiohttp import ClientConnectionError

View File

@ -1,4 +1,5 @@
"""The test for the Facebook notify module."""
from http import HTTPStatus
import pytest

View File

@ -1,4 +1,5 @@
"""The tests for local file sensor platform."""
from unittest.mock import Mock, mock_open, patch
from homeassistant.components.fail2ban.sensor import (

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,5 @@
"""Test the FastdotcomDataUpdateCoordindator."""
from datetime import timedelta
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test for Sensibo component Init."""
from __future__ import annotations
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test the FastdotcomDataUpdateCoordindator."""
from unittest.mock import patch
from freezegun.api import FrozenDateTimeFactory

View File

@ -1,4 +1,5 @@
"""Test Fastdotcom service."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""The tests for the feedreader component."""
from collections.abc import Generator
from datetime import datetime, timedelta
import pickle

View File

@ -1,4 +1,5 @@
"""The tests for Home Assistant ffmpeg binary sensor."""
from unittest.mock import AsyncMock, patch
from homeassistant.const import EVENT_HOMEASSISTANT_START

View File

@ -1,4 +1,5 @@
"""The tests for Home Assistant ffmpeg."""
from unittest.mock import AsyncMock, MagicMock, Mock, call, patch
from homeassistant.components import ffmpeg

View File

@ -1,4 +1,5 @@
"""Test helpers."""
from collections.abc import Generator
from unittest.mock import AsyncMock, Mock, patch

View File

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

View File

@ -1,4 +1,5 @@
"""Test the Fibaro scene platform."""
from unittest.mock import Mock
from homeassistant.components.scene import DOMAIN as SCENE_DOMAIN

View File

@ -1,4 +1,5 @@
"""The tests for local file sensor platform."""
from unittest.mock import Mock, patch
from homeassistant.const import STATE_UNKNOWN

View File

@ -1,4 +1,5 @@
"""Fixtures for FileUpload integration."""
from io import StringIO
import pytest

View File

@ -1,4 +1,5 @@
"""Test the File Upload integration."""
from contextlib import contextmanager
from pathlib import Path
from random import getrandbits

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for the Filesize config flow."""
from pathlib import Path
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests for the Filesize integration."""
from pathlib import Path
from homeassistant.components.filesize.const import DOMAIN

View File

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

View File

@ -1,4 +1,5 @@
"""Test the FireServiceRota config flow."""
from unittest.mock import patch
from pyfireservicerota import InvalidAuthError

View File

@ -1,4 +1,5 @@
"""Test the Firmata config flow."""
from unittest.mock import patch
from pymata_express.pymata_express_serial import serial

View File

@ -1,4 +1,5 @@
"""Test the FiveM config flow."""
from unittest.mock import patch
from fivem import FiveMServerOfflineError

View File

@ -1,4 +1,5 @@
"""Standard fixtures for the Fjäråskupan integration."""
from __future__ import annotations
import pytest

View File

@ -1,4 +1,5 @@
"""Test the Fjäråskupan config flow."""
from __future__ import annotations
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Configuration for Flexit Nordic (BACnet) tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View File

@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) binary sensor entities."""
from unittest.mock import AsyncMock
from syrupy.assertion import SnapshotAssertion

View File

@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) climate entity."""
from unittest.mock import AsyncMock
from syrupy.assertion import SnapshotAssertion

View File

@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) __init__."""
from flexit_bacnet import DecodingError
from homeassistant.components.flexit_bacnet.const import DOMAIN

View File

@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) number entities."""
from unittest.mock import AsyncMock
from flexit_bacnet import DecodingError

View File

@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) sensor entities."""
from unittest.mock import AsyncMock
from syrupy.assertion import SnapshotAssertion

View File

@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) switch entities."""
from unittest.mock import AsyncMock
from flexit_bacnet import DecodingError

View File

@ -1,4 +1,5 @@
"""Tests for Flic button integration."""
from unittest import mock
from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""Test the Flick Electric config flow."""
from unittest.mock import patch
from pyflick.authentication import AuthException

View File

@ -1,4 +1,5 @@
"""Test the Flipr binary sensor."""
from datetime import datetime
from unittest.mock import patch

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for init methods."""
from unittest.mock import patch
from homeassistant.components.flipr.const import CONF_FLIPR_ID, DOMAIN

View File

@ -1,4 +1,5 @@
"""Test the Flipr sensor."""
from datetime import datetime
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Define fixtures available for all tests."""
from http import HTTPStatus
import json
import time

View File

@ -1,4 +1,5 @@
"""Test Flo by Moen binary sensor entities."""
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
from homeassistant.const import (
ATTR_FRIENDLY_NAME,

View File

@ -1,4 +1,5 @@
"""Test the flo config flow."""
from http import HTTPStatus
import json
import time

View File

@ -1,4 +1,5 @@
"""Define tests for device-related endpoints."""
from datetime import timedelta
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test init."""
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.core import HomeAssistant

View File

@ -1,4 +1,5 @@
"""Test Flo by Moen sensor entities."""
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorStateClass
from homeassistant.const import ATTR_ENTITY_ID, CONF_PASSWORD, CONF_USERNAME

View File

@ -1,4 +1,5 @@
"""Tests for the switch domain for Flo by Moen."""
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
from homeassistant.components.switch import DOMAIN
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, STATE_OFF, STATE_ON

View File

@ -1,4 +1,5 @@
"""Test the flume config flow."""
from unittest.mock import MagicMock, patch
import requests.exceptions

View File

@ -1,4 +1,5 @@
"""The tests for the Flux switch platform."""
from unittest.mock import patch
from freezegun import freeze_time

View File

@ -1,4 +1,5 @@
"""Tests for button platform."""
from homeassistant.components import flux_led
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN
from homeassistant.components.flux_led.const import DOMAIN

View File

@ -1,4 +1,5 @@
"""Define tests for the Flux LED/Magic Home config flow."""
from __future__ import annotations
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Test flux_led diagnostics."""
from homeassistant.components.flux_led.const import DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for light platform."""
from datetime import timedelta
from unittest.mock import AsyncMock, Mock

View File

@ -1,4 +1,5 @@
"""Tests for select platform."""
from unittest.mock import patch
from flux_led.const import (

View File

@ -1,4 +1,5 @@
"""Tests for flux_led sensor platform."""
from homeassistant.components import flux_led
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component

View File

@ -1,4 +1,5 @@
"""Tests for switch platform."""
from flux_led.const import MODE_MUSIC
from homeassistant.components import flux_led

View File

@ -1,4 +1,5 @@
"""The tests for the Foobot sensor platform."""
from http import HTTPStatus
import re
from unittest.mock import MagicMock

View File

@ -1,4 +1,5 @@
"""Test the Forecast.Solar config flow."""
from unittest.mock import AsyncMock
from homeassistant.components.forecast_solar.const import (

View File

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

View File

@ -1,4 +1,5 @@
"""Test forecast solar energy platform."""
from datetime import UTC, datetime
from unittest.mock import MagicMock

View File

@ -1,4 +1,5 @@
"""Tests for the Forecast.Solar integration."""
from unittest.mock import MagicMock, patch
from forecast_solar import ForecastSolarConnectionError

View File

@ -1,4 +1,5 @@
"""Tests for the sensors provided by the Forecast.Solar integration."""
from unittest.mock import MagicMock
import pytest

View File

@ -1,4 +1,5 @@
"""Media browsing tests for the forked_daapd media player platform."""
from http import HTTPStatus
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""The config flow tests for the forked_daapd media player platform."""
from ipaddress import ip_address
from unittest.mock import AsyncMock, MagicMock, patch

View File

@ -1,4 +1,5 @@
"""The media player tests for the forked_daapd media player platform."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""Test the Foscam config flow."""
from unittest.mock import patch
from libpyfoscam.foscam import (

View File

@ -1,4 +1,5 @@
"""Common methods used across tests for Freebox."""
from unittest.mock import patch
from homeassistant.components.freebox.const import DOMAIN

View File

@ -1,4 +1,5 @@
"""Tests for the Freebox alarms."""
from copy import deepcopy
from unittest.mock import Mock

View File

@ -1,4 +1,5 @@
"""Tests for the Freebox binary sensors."""
from copy import deepcopy
from unittest.mock import Mock

View File

@ -1,4 +1,5 @@
"""Tests for the Freebox buttons."""
from unittest.mock import ANY, AsyncMock, Mock, patch
from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""Tests for the Freebox config flow."""
from ipaddress import ip_address
from unittest.mock import Mock, patch

View File

@ -1,4 +1,5 @@
"""Tests for the Freebox device trackers."""
from unittest.mock import Mock
from freezegun.api import FrozenDateTimeFactory

View File

@ -1,4 +1,5 @@
"""Tests for the Freebox init."""
from unittest.mock import ANY, Mock, patch
from pytest_unordered import unordered

View File

@ -1,4 +1,5 @@
"""Tests for the Freebox sensors."""
from copy import deepcopy
from unittest.mock import Mock

View File

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

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for the Freedompro climate."""
from datetime import timedelta
from unittest.mock import ANY, patch

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for the Freedompro cover."""
from datetime import timedelta
from unittest.mock import ANY, patch

View File

@ -1,4 +1,5 @@
"""Tests for the Freedompro fan."""
from datetime import timedelta
from unittest.mock import ANY, patch

View File

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

View File

@ -1,4 +1,5 @@
"""Tests for the Freedompro lock."""
from datetime import timedelta
from unittest.mock import ANY, patch

View File

@ -1,4 +1,5 @@
"""Tests for the Freedompro sensor."""
from datetime import timedelta
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests for the Freedompro switch."""
from datetime import timedelta
from unittest.mock import ANY, patch

View File

@ -1,4 +1,5 @@
"""Common stuff for Fritz!Tools tests."""
from homeassistant.components import ssdp
from homeassistant.components.fritz.const import DOMAIN
from homeassistant.components.ssdp import ATTR_UPNP_FRIENDLY_NAME, ATTR_UPNP_UDN

View File

@ -1,4 +1,5 @@
"""Tests for Fritz!Tools button platform."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""Tests for Fritz!Tools diagnostics platform."""
from __future__ import annotations
from homeassistant.components.diagnostics import REDACTED

View File

@ -1,4 +1,5 @@
"""Tests for Fritz!Tools image platform."""
from datetime import timedelta
from http import HTTPStatus
from unittest.mock import patch

View File

@ -1,4 +1,5 @@
"""Tests for Fritz!Tools."""
from unittest.mock import patch
import pytest

View File

@ -1,4 +1,5 @@
"""Tests for Fritz!Tools sensor platform."""
from __future__ import annotations
from datetime import timedelta

View File

@ -1,4 +1,5 @@
"""Tests for Fritz!Tools switch platform."""
from __future__ import annotations
import pytest

View File

@ -1,4 +1,5 @@
"""Fixtures for the AVM Fritz!Box integration."""
from unittest.mock import Mock, patch
import pytest

View File

@ -1,4 +1,5 @@
"""Constants for fritzbox tests."""
from homeassistant.components.fritzbox.const import DOMAIN
from homeassistant.const import CONF_DEVICES, CONF_HOST, CONF_PASSWORD, CONF_USERNAME

View File

@ -1,4 +1,5 @@
"""Tests for AVM Fritz!Box binary sensor component."""
from datetime import timedelta
from unittest import mock
from unittest.mock import Mock

View File

@ -1,4 +1,5 @@
"""Tests for AVM Fritz!Box templates."""
from datetime import timedelta
from unittest.mock import Mock

View File

@ -1,4 +1,5 @@
"""Tests for AVM Fritz!Box climate component."""
from datetime import timedelta
from unittest.mock import Mock, call

View File

@ -1,4 +1,5 @@
"""Tests for AVM Fritz!Box switch component."""
from datetime import timedelta
from unittest.mock import Mock, call

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