Use a future for mock coro (#34989)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-04-30 16:31:00 -07:00
1 parent ba7391528f
commit 76f392476b
26 files changed
+154 -262

No files matched your search

+1 -8
View File
@@ -6,7 +6,7 @@ from homeassistant.helpers.update_coordinator import UpdateFailed
from homeassistant.setup import async_setup_component
from tests.async_mock import patch
from tests.common import MockDependency, mock_component
from tests.common import mock_component
NEW_VERSION = "10000.0"
MOCK_VERSION = "10.0"
@@ -17,13 +17,6 @@ MOCK_CONFIG = {updater.DOMAIN: {"reporting": True}}
RELEASE_NOTES = "test release notes"
@pytest.fixture(autouse=True)
def mock_distro():
"""Mock distro dep."""
with MockDependency("distro"):
yield
@pytest.fixture(autouse=True)
def mock_version():
"""Mock current version."""