Bypass testing two api calls in one function

I’m getting an error like this

 Assertion with == failed
      code:  assert "/teams/1" == conn.request_path
      left:  "/teams/1"
      right: "/schedule/1"

and

** (Jason.DecodeError) unexpected end of input at position 0