core/tests/components/icloud/conftest.py

14 lines
295 B
Python
Raw Normal View History

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-04-05 22:21:22 +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