mirror of
https://github.com/home-assistant/core
synced 2024-09-06 10:29:55 +02:00
10 lines
221 B
Python
10 lines
221 B
Python
"""Mock utilities that are async aware."""
|
|
import sys
|
|
|
|
if sys.version_info[:2] < (3, 8):
|
|
from asynctest.mock import * # noqa
|
|
|
|
AsyncMock = CoroutineMock # noqa: F405
|
|
else:
|
|
from unittest.mock import * # noqa
|