aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/inprogress.py
blob: f1bc32c036b51e5d713d5a4eee123ba2388905f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Bug fixing in progress"""
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()