Skip to content

Commit 9dd7f93

Browse files
author
Alexander Smishlajev
committed
init.initialize() was removed in [[CVS:1.30]] (27-jul-2004)
initialize test trackers as it is done in admin.py
1 parent 1ffbca5 commit 9dd7f93

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/db_test_base.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: db_test_base.py,v 1.44 2004-09-25 15:47:02 a1s Exp $
18+
# $Id: db_test_base.py,v 1.45 2004-09-26 12:17:42 a1s Exp $
1919

2020
import unittest, os, shutil, errno, imp, sys, time, pprint
2121

@@ -1365,11 +1365,17 @@ def testCreation(self):
13651365
finally:
13661366
f.close()
13671367

1368-
init.initialise(self.dirname, 'sekrit')
1369-
13701368
# check we can load the package
13711369
tracker = instance.open(self.dirname)
13721370

1371+
# if there is a database left behind
1372+
# from previous test runs, nuke it
1373+
if tracker.exists():
1374+
tracker.nuke()
1375+
1376+
# initialize the tracker database
1377+
tracker.init(password.Password('sekrit'))
1378+
13731379
# and open the database
13741380
db = self.db = tracker.open()
13751381

0 commit comments

Comments
 (0)