aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/commit.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-31 14:59:06 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-31 14:59:06 -0400
commit58cba607535cd33c97fd5dc3737c9da4afa9a6bb (patch)
tree7f5cfec092fe27735bf1228fb124601a920fc85f /becommands/commit.py
parent3c4ce1b4519186007f2568569b1bff55cdbb108f (diff)
downloadbugseverywhere-58cba607535cd33c97fd5dc3737c9da4afa9a6bb.tar.gz
Improved unittest cleanup by adding BugDir.cleanup().
Also simple_bug_dir -> SimpleBugDir class, which allows me to add utility.Dir cleanup to SimpleBugDir.cleanup(). Still having a bit of trouble with the becommand.new tests due to bugdir loading though...
Diffstat (limited to 'becommands/commit.py')
-rw-r--r--becommands/commit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/becommands/commit.py b/becommands/commit.py
index 4f3bdbd..fb85651 100644
--- a/becommands/commit.py
+++ b/becommands/commit.py
@@ -22,13 +22,14 @@ def execute(args, manipulate_encodings=True):
"""
>>> import os, time
>>> from libbe import bug
- >>> bd = bugdir.simple_bug_dir()
+ >>> bd = bugdir.SimpleBugDir()
>>> os.chdir(bd.root)
>>> full_path = "testfile"
>>> test_contents = "A test file"
>>> bd.rcs.set_file_contents(full_path, test_contents)
>>> execute(["Added %s." % (full_path)], manipulate_encodings=False) # doctest: +ELLIPSIS
Committed ...
+ >>> bd.cleanup()
"""
parser = get_parser()
options, args = parser.parse_args(args)