comparison 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
comparison
equal deleted inserted replaced
2686:79fd8537ae3b 2687:99bd8a4b8abf
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
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 $
19 19
20 import unittest, os, shutil, errno, imp, sys, time, pprint 20 import unittest, os, shutil, errno, imp, sys, time, pprint
21 21
22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \
23 Interval, DatabaseError, Boolean, Number, Node 23 Interval, DatabaseError, Boolean, Number, Node
1363 try: 1363 try:
1364 f.write(self.extra_config) 1364 f.write(self.extra_config)
1365 finally: 1365 finally:
1366 f.close() 1366 f.close()
1367 1367
1368 init.initialise(self.dirname, 'sekrit')
1369
1370 # check we can load the package 1368 # check we can load the package
1371 tracker = instance.open(self.dirname) 1369 tracker = instance.open(self.dirname)
1370
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'))
1372 1378
1373 # and open the database 1379 # and open the database
1374 db = self.db = tracker.open() 1380 db = self.db = tracker.open()
1375 1381
1376 # check the basics of the schema and initial data set 1382 # check the basics of the schema and initial data set

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