mock-test.sh 351 B

12345
  1. #!/bin/sh
  2. ./pagamigo.py redirect --mock --username example@example.com --password example --url 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-0JJ78899GM838124W' --base 'https://www.sandbox.paypal.com' --debug > /tmp/result.txt
  3. cat tests/login.txt tests/redirect.txt > /tmp/truth.txt
  4. diff /tmp/result.txt /tmp/truth.txt