Added tests to Init to check for empty settings file
authorW. Trevor King <wking@drexel.edu>
Fri, 22 Jan 2010 14:15:36 +0000 (09:15 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 22 Jan 2010 14:15:36 +0000 (09:15 -0500)
libbe/command/init.py

index 7fdbdae428646db7f9b56fde9d7cdeff3eef35f3..4e8bfc218dc533b7dfecfc3bce3777a75c2c9c78 100644 (file)
@@ -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