2020-04-05 22:21:22 +00:00
|
|
|
"""Configure iCloud tests."""
|
2021-01-01 21:31:56 +00:00
|
|
|
from unittest.mock import patch
|
2020-04-05 22:21:22 +00:00
|
|
|
|
2021-01-01 21:31:56 +00:00
|
|
|
import pytest
|
2020-05-03 18:27:19 +00:00
|
|
|
|
2020-04-05 22:21:22 +00:00
|
|
|
|
2022-03-31 20:25:32 +00: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
|