diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-22 09:15:36 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-22 09:15:36 -0500 |
commit | 2cd6b109becedafa7aab4060ab4fee66a624bf59 (patch) | |
tree | cd7ac25a1b732783d80045b2cc924673c8fdf65d | |
parent | 6abea58e9359f14b256edb2dca0690b9c3ffe875 (diff) | |
download | bugseverywhere-2cd6b109becedafa7aab4060ab4fee66a624bf59.tar.gz |
Added tests to Init to check for empty settings file
-rw-r--r-- | libbe/command/init.py | 9 |
1 files changed, 8 insertions, 1 deletions
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 |