diff options
author | Oleg Romanyshyn <oromanyshyn@panoramicfeedback.com> | 2005-04-22 15:44:12 +0000 |
---|---|---|
committer | Oleg Romanyshyn <oromanyshyn@panoramicfeedback.com> | 2005-04-22 15:44:12 +0000 |
commit | 4c567ef59a85ce345ce76268aafc4a5ff9c66e62 (patch) | |
tree | e369e7283c2226d5bafb6139e64b8c0b3c52bccb /becommands/inprogress.py | |
parent | 7f0b9b9fb07cddf83c3225f6d774056af0923ef6 (diff) | |
download | bugseverywhere-4c567ef59a85ce345ce76268aafc4a5ff9c66e62.tar.gz |
Added new status - "in-progress"
Diffstat (limited to 'becommands/inprogress.py')
-rw-r--r-- | becommands/inprogress.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/becommands/inprogress.py b/becommands/inprogress.py new file mode 100644 index 0000000..968551e --- /dev/null +++ b/becommands/inprogress.py @@ -0,0 +1,19 @@ +"""Close a bug""" +from libbe import cmdutil +def execute(args): + """ + >>> from libbe import tests + >>> import os + >>> dir = tests.simple_bug_dir() + >>> os.chdir(dir.dir) + >>> dir.get_bug("a").status + 'open' + >>> execute(("a",)) + >>> dir.get_bug("a").status + 'in-progress' + >>> tests.clean_up() + """ + assert(len(args) == 1) + bug = cmdutil.get_bug(args[0]) + bug.status = "in-progress" + bug.save() |