Skip to content

Commit

Permalink
Add empty line after module docstring [tests f-k] (#112709)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Mar 8, 2024
1 parent 7d6251c commit c88b337
Show file tree
Hide file tree
Showing 528 changed files with 528 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/components/faa_delays/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the FAA Delays config flow."""

from unittest.mock import patch

from aiohttp import ClientConnectionError
Expand Down
1 change: 1 addition & 0 deletions tests/components/facebook/test_notify.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The test for the Facebook notify module."""

from http import HTTPStatus

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/fail2ban/test_sensor.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
1 change: 1 addition & 0 deletions tests/components/fan/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions tests/components/fan/test_device_trigger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for Fan device triggers."""

from datetime import timedelta

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/fan/test_recorder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for fan recorder."""

from __future__ import annotations

from datetime import timedelta
Expand Down
1 change: 1 addition & 0 deletions tests/components/fastdotcom/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test for the Fast.com config flow."""

from unittest.mock import patch

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/fastdotcom/test_coordinator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the FastdotcomDataUpdateCoordindator."""

from datetime import timedelta
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/fastdotcom/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test for Sensibo component Init."""

from __future__ import annotations

from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/components/fastdotcom/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the FastdotcomDataUpdateCoordindator."""

from unittest.mock import patch

from freezegun.api import FrozenDateTimeFactory
Expand Down
1 change: 1 addition & 0 deletions tests/components/fastdotcom/test_service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Fastdotcom service."""

from unittest.mock import patch

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/feedreader/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for the feedreader component."""

from collections.abc import Generator
from datetime import datetime, timedelta
import pickle
Expand Down
1 change: 1 addition & 0 deletions tests/components/ffmpeg/test_binary_sensor.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/ffmpeg/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for Home Assistant ffmpeg."""

from unittest.mock import AsyncMock, MagicMock, Mock, call, patch

from homeassistant.components import ffmpeg
Expand Down
1 change: 1 addition & 0 deletions tests/components/fibaro/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test helpers."""

from collections.abc import Generator
from unittest.mock import AsyncMock, Mock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/fibaro/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Fibaro config flow."""

from unittest.mock import Mock

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/fibaro/test_scene.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Fibaro scene platform."""

from unittest.mock import Mock

from homeassistant.components.scene import DOMAIN as SCENE_DOMAIN
Expand Down
1 change: 1 addition & 0 deletions tests/components/file/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for local file sensor platform."""

from unittest.mock import Mock, patch

from homeassistant.const import STATE_UNKNOWN
Expand Down
1 change: 1 addition & 0 deletions tests/components/file_upload/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fixtures for FileUpload integration."""

from io import StringIO

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/file_upload/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the File Upload integration."""

from contextlib import contextmanager
from pathlib import Path
from random import getrandbits
Expand Down
1 change: 1 addition & 0 deletions tests/components/filesize/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fixtures for Filesize integration tests."""

from __future__ import annotations

from collections.abc import Generator
Expand Down
1 change: 1 addition & 0 deletions tests/components/filesize/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Filesize config flow."""

from pathlib import Path
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/filesize/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Filesize integration."""

from pathlib import Path

from homeassistant.components.filesize.const import DOMAIN
Expand Down
1 change: 1 addition & 0 deletions tests/components/filter/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The test for the data filter sensor platform."""

from datetime import timedelta
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/fireservicerota/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the FireServiceRota config flow."""

from unittest.mock import patch

from pyfireservicerota import InvalidAuthError
Expand Down
1 change: 1 addition & 0 deletions tests/components/firmata/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Firmata config flow."""

from unittest.mock import patch

from pymata_express.pymata_express_serial import serial
Expand Down
1 change: 1 addition & 0 deletions tests/components/fivem/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the FiveM config flow."""

from unittest.mock import patch

from fivem import FiveMServerOfflineError
Expand Down
1 change: 1 addition & 0 deletions tests/components/fjaraskupan/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Standard fixtures for the Fjäråskupan integration."""

from __future__ import annotations

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/fjaraskupan/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Fjäråskupan config flow."""

from __future__ import annotations

from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/components/flexit_bacnet/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration for Flexit Nordic (BACnet) tests."""

from collections.abc import Generator
from unittest.mock import AsyncMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/flexit_bacnet/test_binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) binary sensor entities."""

from unittest.mock import AsyncMock

from syrupy.assertion import SnapshotAssertion
Expand Down
1 change: 1 addition & 0 deletions tests/components/flexit_bacnet/test_climate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) climate entity."""

from unittest.mock import AsyncMock

from syrupy.assertion import SnapshotAssertion
Expand Down
1 change: 1 addition & 0 deletions tests/components/flexit_bacnet/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) __init__."""

from flexit_bacnet import DecodingError

from homeassistant.components.flexit_bacnet.const import DOMAIN
Expand Down
1 change: 1 addition & 0 deletions tests/components/flexit_bacnet/test_number.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) number entities."""

from unittest.mock import AsyncMock

from flexit_bacnet import DecodingError
Expand Down
1 change: 1 addition & 0 deletions tests/components/flexit_bacnet/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) sensor entities."""

from unittest.mock import AsyncMock

from syrupy.assertion import SnapshotAssertion
Expand Down
1 change: 1 addition & 0 deletions tests/components/flexit_bacnet/test_switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Flexit Nordic (BACnet) switch entities."""

from unittest.mock import AsyncMock

from flexit_bacnet import DecodingError
Expand Down
1 change: 1 addition & 0 deletions tests/components/flic/test_binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for Flic button integration."""

from unittest import mock

from homeassistant.core import HomeAssistant
Expand Down
1 change: 1 addition & 0 deletions tests/components/flick_electric/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Flick Electric config flow."""

from unittest.mock import patch

from pyflick.authentication import AuthException
Expand Down
1 change: 1 addition & 0 deletions tests/components/flipr/test_binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Flipr binary sensor."""

from datetime import datetime
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/flipr/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Flipr config flow."""

from unittest.mock import patch

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/flipr/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for init methods."""

from unittest.mock import patch

from homeassistant.components.flipr.const import CONF_FLIPR_ID, DOMAIN
Expand Down
1 change: 1 addition & 0 deletions tests/components/flipr/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Flipr sensor."""

from datetime import datetime
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/flo/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define fixtures available for all tests."""

from http import HTTPStatus
import json
import time
Expand Down
1 change: 1 addition & 0 deletions tests/components/flo/test_binary_sensor.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
1 change: 1 addition & 0 deletions tests/components/flo/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the flo config flow."""

from http import HTTPStatus
import json
import time
Expand Down
1 change: 1 addition & 0 deletions tests/components/flo/test_device.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for device-related endpoints."""

from datetime import timedelta
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/components/flo/test_init.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/flo/test_sensor.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/flo/test_switch.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/flume/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the flume config flow."""

from unittest.mock import MagicMock, patch

import requests.exceptions
Expand Down
1 change: 1 addition & 0 deletions tests/components/flux/test_switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for the Flux switch platform."""

from unittest.mock import patch

from freezegun import freeze_time
Expand Down
1 change: 1 addition & 0 deletions tests/components/flux_led/test_button.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/flux_led/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for the Flux LED/Magic Home config flow."""

from __future__ import annotations

from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/components/flux_led/test_diagnostics.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/flux_led/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the flux_led component."""

from __future__ import annotations

from datetime import timedelta
Expand Down
1 change: 1 addition & 0 deletions tests/components/flux_led/test_light.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for light platform."""

from datetime import timedelta
from unittest.mock import AsyncMock, Mock

Expand Down
1 change: 1 addition & 0 deletions tests/components/flux_led/test_select.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for select platform."""

from unittest.mock import patch

from flux_led.const import (
Expand Down
1 change: 1 addition & 0 deletions tests/components/flux_led/test_sensor.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/components/flux_led/test_switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for switch platform."""

from flux_led.const import MODE_MUSIC

from homeassistant.components import flux_led
Expand Down
1 change: 1 addition & 0 deletions tests/components/foobot/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The tests for the Foobot sensor platform."""

from http import HTTPStatus
import re
from unittest.mock import MagicMock
Expand Down
1 change: 1 addition & 0 deletions tests/components/forecast_solar/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Forecast.Solar config flow."""

from unittest.mock import AsyncMock

from homeassistant.components.forecast_solar.const import (
Expand Down
1 change: 1 addition & 0 deletions tests/components/forecast_solar/test_diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the Forecast.Solar integration."""

from syrupy import SnapshotAssertion

from homeassistant.core import HomeAssistant
Expand Down
1 change: 1 addition & 0 deletions tests/components/forecast_solar/test_energy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test forecast solar energy platform."""

from datetime import UTC, datetime
from unittest.mock import MagicMock

Expand Down
1 change: 1 addition & 0 deletions tests/components/forecast_solar/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Forecast.Solar integration."""

from unittest.mock import MagicMock, patch

from forecast_solar import ForecastSolarConnectionError
Expand Down
1 change: 1 addition & 0 deletions tests/components/forecast_solar/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the sensors provided by the Forecast.Solar integration."""

from unittest.mock import MagicMock

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/components/forked_daapd/test_browse_media.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Media browsing tests for the forked_daapd media player platform."""

from http import HTTPStatus
from unittest.mock import patch

Expand Down
Loading

0 comments on commit c88b337

Please sign in to comment.