pytest mock requests json