Add freezer to known test fixtures in pylint (#89825)

Add freezer to known fixtures in pylint
This commit is contained in:
epenet 2023-03-17 03:39:41 +01:00 committed by GitHub
parent e16f17f5a8
commit ff8b91aeea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 61 additions and 31 deletions

View file

@ -5,6 +5,7 @@ import json
from pathlib import Path
from unittest.mock import MagicMock, patch
from freezegun.api import FrozenDateTimeFactory
import pytest
from homeassistant.components import mqtt, sensor
@ -1278,7 +1279,7 @@ async def test_cleanup_triggers_and_restoring_state(
mqtt_mock_entry_with_yaml_config: MqttMockHAClientGenerator,
caplog: pytest.LogCaptureFixture,
tmp_path: Path,
freezer,
freezer: FrozenDateTimeFactory,
) -> None:
"""Test cleanup old triggers at reloading and restoring the state."""
domain = sensor.DOMAIN
@ -1338,7 +1339,7 @@ async def test_cleanup_triggers_and_restoring_state(
async def test_skip_restoring_state_with_over_due_expire_trigger(
hass: HomeAssistant,
mqtt_mock_entry_with_yaml_config: MqttMockHAClientGenerator,
freezer,
freezer: FrozenDateTimeFactory,
) -> None:
"""Test restoring a state with over due expire timer."""