Skip to content

Instantly share code, notes, and snippets.

@AutomatedTester
Created December 28, 2015 22:45
Show Gist options
  • Save AutomatedTester/fabd704b3e0c03ca079a to your computer and use it in GitHub Desktop.
Save AutomatedTester/fabd704b3e0c03ca079a to your computer and use it in GitHub Desktop.
# 1. Create a python virtual env
# 2. With that Virtual Env activated, and https://github.com/AutomatedTester/Bugsy/tree/set_cc checked out
# run python setup.py develop
# 3. Run the code below
import bugsy
bz = bugsy.Bugsy("dburns@mozilla.com", "password", bugzilla_url="https://bugzilla-dev.allizom.org/rest")
bug = bugsy.Bug()
bug.summary = "I love cheese"
bug.add_comment('I do love sausages')
bz.put(bug)
print bug.id
import pdb; pdb.set_trace()
bug.cc = 'mdas@mozilla.com'
updated_bug = bz.put(bug)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment