hass-core/tests/components/icloud/conftest.py

14 lines
295 B
Python
Raw Normal View History

2020-04-06 00:21:22 +02:00
"""Configure iCloud tests."""
2021-01-01 22:31:56 +01:00
from unittest.mock import patch
2020-04-06 00:21:22 +02:00
2021-01-01 22:31:56 +01:00
import pytest
2020-04-06 00:21:22 +02:00
@pytest.fixture(autouse=True)
def icloud_not_create_dir():
"""Mock component setup."""
with patch(
"homeassistant.components.icloud.config_flow.os.path.exists", return_value=True
):
yield