mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Use built-in test helpers on 3.8 (#34901)
This commit is contained in:
@ -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."""
|
||||
|
||||
|
Reference in New Issue
Block a user