mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fix test_process
This commit is contained in:
parent
315db8ac71
commit
064ff259bd
1 changed files with 4 additions and 3 deletions
|
@ -78,7 +78,7 @@ def test_call_async_output(test_file):
|
|||
call_async_output(["cat", str(test_file)], callback)
|
||||
|
||||
|
||||
def test_call_async_output_kwargs(test_file):
|
||||
def test_call_async_output_kwargs(test_file, mocker):
|
||||
def callback(a):
|
||||
assert a == "foo\n" or a == "bar\n"
|
||||
|
||||
|
@ -98,8 +98,9 @@ def test_call_async_output_kwargs(test_file):
|
|||
|
||||
callback = (callbackA, callbackB, callbackC)
|
||||
|
||||
os.mkdir("/tmp/teststdinfo/")
|
||||
call_async_output(["cat", str(test_file)], callback, stdinfo="/tmp/teststdinfo/teststdinfo")
|
||||
dirname = os.path.dirname(str(test_file))
|
||||
os.mkdir(os.path.join(dirname, "teststdinfo"))
|
||||
call_async_output(["cat", str(test_file)], callback, stdinfo=os.path.join(dirname, "teststdinfo", "teststdinfo"))
|
||||
|
||||
|
||||
def test_check_output(test_file):
|
||||
|
|
Loading…
Reference in a new issue