|
@@ -28,6 +28,8 @@ |
|
|
|
|
|
|
|
|
from unittest.mock import AsyncMock, Mock |
|
|
from unittest.mock import AsyncMock, Mock |
|
|
|
|
|
|
|
|
|
|
|
__all__ = [ 'wrap_subprocess_exec' ] |
|
|
|
|
|
|
|
|
def wrap_subprocess_exec(mockobj, stdout=b'', stderr=b'', retcode=0): |
|
|
def wrap_subprocess_exec(mockobj, stdout=b'', stderr=b'', retcode=0): |
|
|
assert isinstance(stdout, bytes) |
|
|
assert isinstance(stdout, bytes) |
|
|
assert isinstance(stderr, bytes) |
|
|
assert isinstance(stderr, bytes) |
|
|