core/tests/components/icloud/conftest.py

15 lines
296 B
Python

"""Configure iCloud tests."""
from unittest.mock import patch
import pytest
@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