From 58cba607535cd33c97fd5dc3737c9da4afa9a6bb Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 31 Jul 2009 14:59:06 -0400 Subject: 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... --- becommands/close.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'becommands/close.py') diff --git a/becommands/close.py b/becommands/close.py index 12848b2..0532ed2 100644 --- a/becommands/close.py +++ b/becommands/close.py @@ -24,7 +24,7 @@ def execute(args, manipulate_encodings=True): """ >>> from libbe import bugdir >>> import os - >>> bd = bugdir.simple_bug_dir() + >>> bd = bugdir.SimpleBugDir() >>> os.chdir(bd.root) >>> print bd.bug_from_shortname("a").status open @@ -32,6 +32,7 @@ def execute(args, manipulate_encodings=True): >>> bd._clear_bugs() >>> print bd.bug_from_shortname("a").status closed + >>> bd.cleanup() """ parser = get_parser() options, args = parser.parse_args(args) -- cgit