mirror of
https://github.com/home-assistant/core.git
synced 2026-02-23 11:26:46 +00:00
12 lines
312 B
Python
12 lines
312 B
Python
"""Common test utilities."""
|
|
from tests.async_mock import Mock
|
|
|
|
|
|
class AsyncMock(Mock):
|
|
"""Implements Mock async."""
|
|
|
|
# pylint: disable=useless-super-delegation
|
|
async def __call__(self, *args, **kwargs):
|
|
"""Hack for async support for Mock."""
|
|
return super().__call__(*args, **kwargs)
|