Fix iCloud tests doing I/O (#33721)

pull/33727/head
Quentame 2020-04-06 00:21:22 +02:00 committed by GitHub
parent 5711c0882f
commit a16e742107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
"""Configure iCloud tests."""
from unittest.mock import patch
import pytest
@pytest.fixture(name="icloud_bypass_setup", autouse=True)
def icloud_bypass_setup_fixture():
"""Mock component setup."""
with patch("homeassistant.components.icloud.async_setup_entry", return_value=True):
yield