Run external process in pytests