How do you bypass a relay to test an electric fuel pump?

Depends. I have to assume It is On or In a car. If that is the case, disconnect the wireing harness running to ithe pump. take a 12-volt battery with lead wires and touch the prongs of the wires going into the pump assembly itself. ( should be 2-3 wires, +,-, & Ground) run a wire fromn your batt to your fuel pump ..figuire out wich 1 is the + and hook it to the wire ..if pump kicks on then pump is good ,if not then pump is junk .