From 2cd6b109becedafa7aab4060ab4fee66a624bf59 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 22 Jan 2010 09:15:36 -0500 Subject: [PATCH] Added tests to Init to check for empty settings file --- libbe/command/init.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libbe/command/init.py b/libbe/command/init.py index 7fdbdae..4e8bfc2 100644 --- a/libbe/command/init.py +++ b/libbe/command/init.py @@ -49,6 +49,10 @@ class Init (libbe.command.Command): BE repository initialized. >>> bd = libbe.bugdir.BugDir(vcs) >>> vcs.disconnect() + >>> vcs.connect() + >>> bugdir = libbe.bugdir.BugDir(vcs, from_storage=True) + >>> bugdir.settings + >>> vcs.disconnect() >>> vcs.destroy() >>> dir.cleanup() @@ -66,6 +70,10 @@ class Init (libbe.command.Command): Using ... for revision control. BE repository initialized. >>> vcs.disconnect() + >>> vcs.connect() + >>> bugdir = libbe.bugdir.BugDir(vcs, from_storage=True) + >>> bugdir.settings + >>> vcs.disconnect() >>> vcs.destroy() >>> dir.cleanup() """ @@ -88,7 +96,6 @@ class Init (libbe.command.Command): storage.init() storage.connect() bd = libbe.bugdir.BugDir(storage, from_storage=False) - bd.save() if bd.storage.name is not 'None': print >> self.stdout, \ 'Using %s for revision control.' % storage.name -- 2.26.2