pytest trial to list