mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 17:49:37 +01:00
Use pytest.mark.freeze_time in bmw_connected_drive tests (#156242)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
from freezegun import freeze_time
|
||||
import pytest
|
||||
from syrupy.assertion import SnapshotAssertion
|
||||
|
||||
@@ -15,7 +14,7 @@ from . import setup_mocked_integration
|
||||
from tests.common import snapshot_platform
|
||||
|
||||
|
||||
@freeze_time("2023-06-22 10:30:00+00:00")
|
||||
@pytest.mark.freeze_time("2023-06-22 10:30:00+00:00")
|
||||
@pytest.mark.usefixtures("bmw_fixture")
|
||||
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||
async def test_entity_state_attrs(
|
||||
|
||||
@@ -4,7 +4,6 @@ from unittest.mock import AsyncMock, patch
|
||||
|
||||
from bimmer_connected.models import MyBMWRemoteServiceError
|
||||
from bimmer_connected.vehicle.remote_services import RemoteServices
|
||||
from freezegun import freeze_time
|
||||
import pytest
|
||||
import respx
|
||||
from syrupy.assertion import SnapshotAssertion
|
||||
@@ -27,7 +26,7 @@ from tests.common import snapshot_platform
|
||||
from tests.components.recorder.common import async_wait_recording_done
|
||||
|
||||
|
||||
@freeze_time("2023-06-22 10:30:00+00:00")
|
||||
@pytest.mark.freeze_time("2023-06-22 10:30:00+00:00")
|
||||
@pytest.mark.usefixtures("bmw_fixture")
|
||||
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||
async def test_entity_state_attrs(
|
||||
|
||||
Reference in New Issue
Block a user