Add empty line after module docstring [tests f-k] (#112709)
This commit is contained in:
parent
7d6251ca08
commit
c88b337600
528 changed files with 528 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
"""Test the FAA Delays config flow."""
|
"""Test the FAA Delays config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from aiohttp import ClientConnectionError
|
from aiohttp import ClientConnectionError
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The test for the Facebook notify module."""
|
"""The test for the Facebook notify module."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for local file sensor platform."""
|
"""The tests for local file sensor platform."""
|
||||||
|
|
||||||
from unittest.mock import Mock, mock_open, patch
|
from unittest.mock import Mock, mock_open, patch
|
||||||
|
|
||||||
from homeassistant.components.fail2ban.sensor import (
|
from homeassistant.components.fail2ban.sensor import (
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
All containing methods are legacy helpers that should not be used by new
|
All containing methods are legacy helpers that should not be used by new
|
||||||
components. Instead call the service directly.
|
components. Instead call the service directly.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from homeassistant.components.fan import (
|
from homeassistant.components.fan import (
|
||||||
ATTR_DIRECTION,
|
ATTR_DIRECTION,
|
||||||
ATTR_OSCILLATING,
|
ATTR_OSCILLATING,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for Fan device triggers."""
|
"""The tests for Fan device triggers."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for fan recorder."""
|
"""The tests for fan recorder."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test for the Fast.com config flow."""
|
"""Test for the Fast.com config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the FastdotcomDataUpdateCoordindator."""
|
"""Test the FastdotcomDataUpdateCoordindator."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test for Sensibo component Init."""
|
"""Test for Sensibo component Init."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the FastdotcomDataUpdateCoordindator."""
|
"""Test the FastdotcomDataUpdateCoordindator."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test Fastdotcom service."""
|
"""Test Fastdotcom service."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for the feedreader component."""
|
"""The tests for the feedreader component."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
import pickle
|
import pickle
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for Home Assistant ffmpeg binary sensor."""
|
"""The tests for Home Assistant ffmpeg binary sensor."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
from homeassistant.const import EVENT_HOMEASSISTANT_START
|
from homeassistant.const import EVENT_HOMEASSISTANT_START
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for Home Assistant ffmpeg."""
|
"""The tests for Home Assistant ffmpeg."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, MagicMock, Mock, call, patch
|
from unittest.mock import AsyncMock, MagicMock, Mock, call, patch
|
||||||
|
|
||||||
from homeassistant.components import ffmpeg
|
from homeassistant.components import ffmpeg
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test helpers."""
|
"""Test helpers."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import AsyncMock, Mock, patch
|
from unittest.mock import AsyncMock, Mock, patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Fibaro config flow."""
|
"""Test the Fibaro config flow."""
|
||||||
|
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Fibaro scene platform."""
|
"""Test the Fibaro scene platform."""
|
||||||
|
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
||||||
from homeassistant.components.scene import DOMAIN as SCENE_DOMAIN
|
from homeassistant.components.scene import DOMAIN as SCENE_DOMAIN
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for local file sensor platform."""
|
"""The tests for local file sensor platform."""
|
||||||
|
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
from homeassistant.const import STATE_UNKNOWN
|
from homeassistant.const import STATE_UNKNOWN
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Fixtures for FileUpload integration."""
|
"""Fixtures for FileUpload integration."""
|
||||||
|
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the File Upload integration."""
|
"""Test the File Upload integration."""
|
||||||
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from random import getrandbits
|
from random import getrandbits
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Fixtures for Filesize integration tests."""
|
"""Fixtures for Filesize 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 Filesize config flow."""
|
"""Tests for the Filesize config flow."""
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Filesize integration."""
|
"""Tests for the Filesize integration."""
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from homeassistant.components.filesize.const import DOMAIN
|
from homeassistant.components.filesize.const import DOMAIN
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The test for the data filter sensor platform."""
|
"""The test for the data filter sensor platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the FireServiceRota config flow."""
|
"""Test the FireServiceRota config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pyfireservicerota import InvalidAuthError
|
from pyfireservicerota import InvalidAuthError
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Firmata config flow."""
|
"""Test the Firmata config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pymata_express.pymata_express_serial import serial
|
from pymata_express.pymata_express_serial import serial
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the FiveM config flow."""
|
"""Test the FiveM config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from fivem import FiveMServerOfflineError
|
from fivem import FiveMServerOfflineError
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Standard fixtures for the Fjäråskupan integration."""
|
"""Standard fixtures for the Fjäråskupan integration."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Fjäråskupan config flow."""
|
"""Test the Fjäråskupan config flow."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Configuration for Flexit Nordic (BACnet) tests."""
|
"""Configuration for Flexit Nordic (BACnet) tests."""
|
||||||
|
|
||||||
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 Flexit Nordic (BACnet) binary sensor entities."""
|
"""Tests for the Flexit Nordic (BACnet) binary sensor entities."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
from syrupy.assertion import SnapshotAssertion
|
from syrupy.assertion import SnapshotAssertion
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Flexit Nordic (BACnet) climate entity."""
|
"""Tests for the Flexit Nordic (BACnet) climate entity."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
from syrupy.assertion import SnapshotAssertion
|
from syrupy.assertion import SnapshotAssertion
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Flexit Nordic (BACnet) __init__."""
|
"""Tests for the Flexit Nordic (BACnet) __init__."""
|
||||||
|
|
||||||
from flexit_bacnet import DecodingError
|
from flexit_bacnet import DecodingError
|
||||||
|
|
||||||
from homeassistant.components.flexit_bacnet.const import DOMAIN
|
from homeassistant.components.flexit_bacnet.const import DOMAIN
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Flexit Nordic (BACnet) number entities."""
|
"""Tests for the Flexit Nordic (BACnet) number entities."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
from flexit_bacnet import DecodingError
|
from flexit_bacnet import DecodingError
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Flexit Nordic (BACnet) sensor entities."""
|
"""Tests for the Flexit Nordic (BACnet) sensor entities."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
from syrupy.assertion import SnapshotAssertion
|
from syrupy.assertion import SnapshotAssertion
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Flexit Nordic (BACnet) switch entities."""
|
"""Tests for the Flexit Nordic (BACnet) switch entities."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
from flexit_bacnet import DecodingError
|
from flexit_bacnet import DecodingError
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for Flic button integration."""
|
"""Tests for Flic button integration."""
|
||||||
|
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Flick Electric config flow."""
|
"""Test the Flick Electric config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pyflick.authentication import AuthException
|
from pyflick.authentication import AuthException
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Flipr binary sensor."""
|
"""Test the Flipr binary sensor."""
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Flipr config flow."""
|
"""Test the Flipr config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for init methods."""
|
"""Tests for init methods."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant.components.flipr.const import CONF_FLIPR_ID, DOMAIN
|
from homeassistant.components.flipr.const import CONF_FLIPR_ID, DOMAIN
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Flipr sensor."""
|
"""Test the Flipr sensor."""
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Define fixtures available for all tests."""
|
"""Define fixtures available for all tests."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test Flo by Moen binary sensor entities."""
|
"""Test Flo by Moen binary sensor entities."""
|
||||||
|
|
||||||
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
|
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_FRIENDLY_NAME,
|
ATTR_FRIENDLY_NAME,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the flo config flow."""
|
"""Test the flo config flow."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Define tests for device-related endpoints."""
|
"""Define tests for device-related endpoints."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test init."""
|
"""Test init."""
|
||||||
|
|
||||||
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
|
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test Flo by Moen sensor entities."""
|
"""Test Flo by Moen sensor entities."""
|
||||||
|
|
||||||
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
|
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
|
||||||
from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorStateClass
|
from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorStateClass
|
||||||
from homeassistant.const import ATTR_ENTITY_ID, CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import ATTR_ENTITY_ID, CONF_PASSWORD, CONF_USERNAME
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the switch domain for Flo by Moen."""
|
"""Tests for the switch domain for Flo by Moen."""
|
||||||
|
|
||||||
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
|
from homeassistant.components.flo.const import DOMAIN as FLO_DOMAIN
|
||||||
from homeassistant.components.switch import DOMAIN
|
from homeassistant.components.switch import DOMAIN
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, STATE_OFF, STATE_ON
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, STATE_OFF, STATE_ON
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the flume config flow."""
|
"""Test the flume config flow."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
import requests.exceptions
|
import requests.exceptions
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for the Flux switch platform."""
|
"""The tests for the Flux switch platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for button platform."""
|
"""Tests for button platform."""
|
||||||
|
|
||||||
from homeassistant.components import flux_led
|
from homeassistant.components import flux_led
|
||||||
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN
|
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN
|
||||||
from homeassistant.components.flux_led.const import DOMAIN
|
from homeassistant.components.flux_led.const import DOMAIN
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Define tests for the Flux LED/Magic Home config flow."""
|
"""Define tests for the Flux LED/Magic Home config flow."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test flux_led diagnostics."""
|
"""Test flux_led diagnostics."""
|
||||||
|
|
||||||
from homeassistant.components.flux_led.const import DOMAIN
|
from homeassistant.components.flux_led.const import DOMAIN
|
||||||
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 @@
|
||||||
"""Tests for the flux_led component."""
|
"""Tests for the flux_led component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for light platform."""
|
"""Tests for light platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import AsyncMock, Mock
|
from unittest.mock import AsyncMock, Mock
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for select platform."""
|
"""Tests for select platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from flux_led.const import (
|
from flux_led.const import (
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for flux_led sensor platform."""
|
"""Tests for flux_led sensor platform."""
|
||||||
|
|
||||||
from homeassistant.components import flux_led
|
from homeassistant.components import flux_led
|
||||||
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 @@
|
||||||
"""Tests for switch platform."""
|
"""Tests for switch platform."""
|
||||||
|
|
||||||
from flux_led.const import MODE_MUSIC
|
from flux_led.const import MODE_MUSIC
|
||||||
|
|
||||||
from homeassistant.components import flux_led
|
from homeassistant.components import flux_led
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for the Foobot sensor platform."""
|
"""The tests for the Foobot sensor platform."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
import re
|
import re
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Forecast.Solar config flow."""
|
"""Test the Forecast.Solar config flow."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
from homeassistant.components.forecast_solar.const import (
|
from homeassistant.components.forecast_solar.const import (
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the diagnostics data provided by the Forecast.Solar integration."""
|
"""Tests for the diagnostics data provided by the Forecast.Solar integration."""
|
||||||
|
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test forecast solar energy platform."""
|
"""Test forecast solar energy platform."""
|
||||||
|
|
||||||
from datetime import UTC, datetime
|
from datetime import UTC, datetime
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Forecast.Solar integration."""
|
"""Tests for the Forecast.Solar integration."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
from forecast_solar import ForecastSolarConnectionError
|
from forecast_solar import ForecastSolarConnectionError
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the sensors provided by the Forecast.Solar integration."""
|
"""Tests for the sensors provided by the Forecast.Solar integration."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Media browsing tests for the forked_daapd media player platform."""
|
"""Media browsing tests for the forked_daapd media player platform."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The config flow tests for the forked_daapd media player platform."""
|
"""The config flow tests for the forked_daapd media player platform."""
|
||||||
|
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The media player tests for the forked_daapd media player platform."""
|
"""The media player tests for the forked_daapd media player platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Foscam config flow."""
|
"""Test the Foscam config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from libpyfoscam.foscam import (
|
from libpyfoscam.foscam import (
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Common methods used across tests for Freebox."""
|
"""Common methods used across tests for Freebox."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant.components.freebox.const import DOMAIN
|
from homeassistant.components.freebox.const import DOMAIN
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freebox alarms."""
|
"""Tests for the Freebox alarms."""
|
||||||
|
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freebox binary sensors."""
|
"""Tests for the Freebox binary sensors."""
|
||||||
|
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freebox buttons."""
|
"""Tests for the Freebox buttons."""
|
||||||
|
|
||||||
from unittest.mock import ANY, AsyncMock, Mock, patch
|
from unittest.mock import ANY, AsyncMock, Mock, patch
|
||||||
|
|
||||||
from pytest_unordered import unordered
|
from pytest_unordered import unordered
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freebox config flow."""
|
"""Tests for the Freebox config flow."""
|
||||||
|
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freebox device trackers."""
|
"""Tests for the Freebox device trackers."""
|
||||||
|
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freebox init."""
|
"""Tests for the Freebox init."""
|
||||||
|
|
||||||
from unittest.mock import ANY, Mock, patch
|
from unittest.mock import ANY, Mock, patch
|
||||||
|
|
||||||
from pytest_unordered import unordered
|
from pytest_unordered import unordered
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freebox sensors."""
|
"""Tests for the Freebox sensors."""
|
||||||
|
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Fixtures for Freedompro integration tests."""
|
"""Fixtures for Freedompro 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 Freedompro binary sensor."""
|
"""Tests for the Freedompro binary sensor."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freedompro climate."""
|
"""Tests for the Freedompro climate."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import ANY, patch
|
from unittest.mock import ANY, patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Define tests for the Freedompro config flow."""
|
"""Define tests for the Freedompro config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freedompro cover."""
|
"""Tests for the Freedompro cover."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import ANY, patch
|
from unittest.mock import ANY, patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freedompro fan."""
|
"""Tests for the Freedompro fan."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import ANY, patch
|
from unittest.mock import ANY, patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freedompro light."""
|
"""Tests for the Freedompro light."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freedompro lock."""
|
"""Tests for the Freedompro lock."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import ANY, patch
|
from unittest.mock import ANY, patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freedompro sensor."""
|
"""Tests for the Freedompro sensor."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Freedompro switch."""
|
"""Tests for the Freedompro switch."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import ANY, patch
|
from unittest.mock import ANY, patch
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Common stuff for Fritz!Tools tests."""
|
"""Common stuff for Fritz!Tools tests."""
|
||||||
|
|
||||||
from homeassistant.components import ssdp
|
from homeassistant.components import ssdp
|
||||||
from homeassistant.components.fritz.const import DOMAIN
|
from homeassistant.components.fritz.const import DOMAIN
|
||||||
from homeassistant.components.ssdp import ATTR_UPNP_FRIENDLY_NAME, ATTR_UPNP_UDN
|
from homeassistant.components.ssdp import ATTR_UPNP_FRIENDLY_NAME, ATTR_UPNP_UDN
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for Fritz!Tools button platform."""
|
"""Tests for Fritz!Tools button platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for Fritz!Tools diagnostics platform."""
|
"""Tests for Fritz!Tools diagnostics platform."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.components.diagnostics import REDACTED
|
from homeassistant.components.diagnostics import REDACTED
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for Fritz!Tools image platform."""
|
"""Tests for Fritz!Tools image platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for Fritz!Tools."""
|
"""Tests for Fritz!Tools."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for Fritz!Tools sensor platform."""
|
"""Tests for Fritz!Tools sensor platform."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for Fritz!Tools switch platform."""
|
"""Tests for Fritz!Tools switch platform."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Fixtures for the AVM Fritz!Box integration."""
|
"""Fixtures for the AVM Fritz!Box integration."""
|
||||||
|
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Constants for fritzbox tests."""
|
"""Constants for fritzbox tests."""
|
||||||
|
|
||||||
from homeassistant.components.fritzbox.const import DOMAIN
|
from homeassistant.components.fritzbox.const import DOMAIN
|
||||||
from homeassistant.const import CONF_DEVICES, CONF_HOST, CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_DEVICES, CONF_HOST, CONF_PASSWORD, CONF_USERNAME
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for AVM Fritz!Box binary sensor component."""
|
"""Tests for AVM Fritz!Box binary sensor component."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for AVM Fritz!Box templates."""
|
"""Tests for AVM Fritz!Box templates."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for AVM Fritz!Box climate component."""
|
"""Tests for AVM Fritz!Box climate component."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import Mock, call
|
from unittest.mock import Mock, call
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for AVM Fritz!Box switch component."""
|
"""Tests for AVM Fritz!Box switch component."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import Mock, call
|
from unittest.mock import Mock, call
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue