Mock subprocess
This commit is contained in:
parent
a866ba5a0d
commit
7a99d4cbca
@ -12,6 +12,11 @@ from podctl.visitors import (
|
||||
)
|
||||
|
||||
|
||||
from unittest import mock
|
||||
from podctl.visitors import packages
|
||||
packages.subprocess.check_call = mock.Mock()
|
||||
|
||||
|
||||
def script_test(name, *visitors):
|
||||
result = str(Container(*visitors).script('build'))
|
||||
path = os.path.join(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user