Skip to content

Instantly share code, notes, and snippets.

@thearrow
Created May 2, 2017 15:43
Show Gist options
  • Save thearrow/57cee6725cfefca8bedf44d6271ff009 to your computer and use it in GitHub Desktop.
Save thearrow/57cee6725cfefca8bedf44d6271ff009 to your computer and use it in GitHub Desktop.
@hooks.before_each
def add_user_and_permissions(transaction):
headers = transaction['request']['headers']
headers['Permissions'] = json.dumps(['viewpoints:view'])
headers['Username'] = "test@test.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment