diff test/db_test_base.py @ 2687:99bd8a4b8abf

init.initialize() was removed in [[CVS:1.30]] (27-jul-2004) initialize test trackers as it is done in admin.py
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 26 Sep 2004 12:17:42 +0000
parents c26a9a5a25d2
children 9d044127c5eb
line wrap: on
line diff
--- a/test/db_test_base.py	Sun Sep 26 11:54:46 2004 +0000
+++ b/test/db_test_base.py	Sun Sep 26 12:17:42 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-# $Id: db_test_base.py,v 1.44 2004-09-25 15:47:02 a1s Exp $
+# $Id: db_test_base.py,v 1.45 2004-09-26 12:17:42 a1s Exp $
 
 import unittest, os, shutil, errno, imp, sys, time, pprint
 
@@ -1365,11 +1365,17 @@
             finally:
                 f.close()
 
-        init.initialise(self.dirname, 'sekrit')
-
         # check we can load the package
         tracker = instance.open(self.dirname)
 
+        # if there is a database left behind
+        # from previous test runs, nuke it
+        if tracker.exists():
+            tracker.nuke()
+
+        # initialize the tracker database
+        tracker.init(password.Password('sekrit'))
+
         # and open the database
         db = self.db = tracker.open()
 

Roundup Issue Tracker: http://roundup-tracker.org/