aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/inprogress.py
diff options
context:
space:
mode:
Diffstat (limited to 'becommands/inprogress.py')
-rw-r--r--becommands/inprogress.py19
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()