def test_start(proc, qtbot, message_mock, py_proc):
 with qtbot.waitSignals([proc.started, proc.finished], timeout=10000, order='strict'):
  argv = py_proc("import sys; print('test'); sys.exit(0)")
  proc.start(*argv)
 assert (not message_mock.messages)
 assert (bytes(proc._proc.readAll()).rstrip() == 'test')

def test_start ( proc , qtbot , message_mock , py_proc ) : with qtbot . waitSignals ( [ proc . started , proc . finished ] , timeout = 10000 , order = 'strict' ) : argv = py_proc ( "import sys; print('test'); sys.exit(0)" ) proc . start ( * argv ) assert ( not message_mock . messages ) assert ( bytes ( proc . _proc . readAll ( ) ) . rstrip ( ) == 'test' )
test simply starting a process .