Use built-in test helpers on 3.8 (#34901)

This commit is contained in:
Paulus Schoutsen
2020-04-30 13:29:50 -07:00
committed by GitHub
parent 6b16c34fd0
commit ec47216388
303 changed files with 1163 additions and 1320 deletions

View File

@ -5,15 +5,13 @@ import tempfile
from typing import Tuple
import unittest
from asynctest import Mock, patch
from homeassistant.components import shell_command
from homeassistant.setup import setup_component
from tests.async_mock import Mock, patch
from tests.common import get_test_home_assistant
@asyncio.coroutine
def mock_process_creator(error: bool = False) -> asyncio.coroutine:
"""Mock a coroutine that creates a process when yielded."""