use asyncmock from unittest library

This commit is contained in:
2021-08-11 21:09:10 +03:00
parent 9c5a9f5837
commit b94179e071
2 changed files with 4 additions and 19 deletions

View File

@ -42,22 +42,6 @@ def anyvar(cls: Type[T], strict: bool = False) -> T:
return AnyVar()
@pytest.helpers.register
class AsyncMock(MagicMock):
"""
async magic mock object
"""
async def __call__(self, *args: Any, **kwargs: Any) -> Any:
"""
async call function
:param args:
:param kwargs:
:return:
"""
return MagicMock.__call__(self, *args, **kwargs)
# generic fixtures
@pytest.fixture
def configuration(resource_path_root: Path) -> Configuration: