Created
December 28, 2015 22:45
-
-
Save AutomatedTester/fabd704b3e0c03ca079a 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
# 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("[email protected]", "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 = '[email protected]' | |
updated_bug = bz.put(bug) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment