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

@ -15,6 +15,7 @@ import secrets
from typing import Any
from unittest.mock import patch
from freezegun.api import FrozenDateTimeFactory
import pytest
from homeassistant.components import calendar
@ -642,7 +643,7 @@ async def test_event_payload(
async def test_trigger_timestamp_window_edge(
hass: HomeAssistant, calls, fake_schedule, freezer
hass: HomeAssistant, calls, fake_schedule, freezer: FrozenDateTimeFactory
) -> None:
"""Test that events in the edge of a scan are included."""
freezer.move_to("2022-04-19 11:00:00+00:00")