mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
12 lines
263 B
Python
12 lines
263 B
Python
"""Common test utilities."""
|
|
|
|
from unittest.mock import Mock
|
|
|
|
|
|
class AsyncMock(Mock):
|
|
"""Implements Mock async."""
|
|
|
|
async def __call__(self, *args, **kwargs):
|
|
"""Hack for async support for Mock."""
|
|
return super().__call__(*args, **kwargs)
|