我有一个功能def execute(process: subprocess.Popen): if not isinstance(process, subprocess.Popen): raise ValueError('expected: subprocessPopen, found: %s' % type(process)) data = io.TextIOWrapper(process.stdout, encoding='utf-8') func1(data_input)我想对它进行单元测试,我想data将它作为参数dictionary传递给func1它,但无法找到出路。
添加回答
举报
0/150
提交
取消