Created
November 17, 2014 20:21
-
-
Save rummik/92196be63ef7408073cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function, unicode_literals | |
import sys | |
# Pull in testing harness, but make it very quiet | |
try: | |
class DevNull: | |
def write(*a, **kw): | |
pass | |
def flush(*a): | |
pass | |
sys.stdout = DevNull() | |
from gratipay.testing import Harness | |
finally: | |
sys.stdout = sys.__stdout__ | |
if len(sys.argv) < 2: | |
sys.exit('Usage: %s <user> [sessionid]' % sys.argv[0]) | |
harness = Harness() | |
harness.make_participant(username=sys.argv[1], session_token='deadbeef') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment