Skip to content

Instantly share code, notes, and snippets.

@rummik
Created November 17, 2014 20:21
Show Gist options
  • Save rummik/92196be63ef7408073cd to your computer and use it in GitHub Desktop.
Save rummik/92196be63ef7408073cd to your computer and use it in GitHub Desktop.
#!/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