aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/init.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-22 09:15:36 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-22 09:15:36 -0500
commit2cd6b109becedafa7aab4060ab4fee66a624bf59 (patch)
treecd7ac25a1b732783d80045b2cc924673c8fdf65d /libbe/command/init.py
parent6abea58e9359f14b256edb2dca0690b9c3ffe875 (diff)
downloadbugseverywhere-2cd6b109becedafa7aab4060ab4fee66a624bf59.tar.gz
Added tests to Init to check for empty settings file
Diffstat (limited to 'libbe/command/init.py')
-rw-r--r--libbe/command/init.py9
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