comparison test/test_db.py @ 432:f97415cccb9d

Fixes so the tests use commit and not close
author Richard Jones <richard@users.sourceforge.net>
date Mon, 03 Dec 2001 21:33:39 +0000
parents a28a80b714f9
children 698534628072
comparison
equal deleted inserted replaced
431:a28a80b714f9 432:f97415cccb9d
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: test_db.py,v 1.9 2001-12-02 05:06:16 richard Exp $ 18 # $Id: test_db.py,v 1.10 2001-12-03 21:33:39 richard Exp $
19 19
20 import unittest, os, shutil 20 import unittest, os, shutil
21 21
22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \
23 Interval, Class, DatabaseError 23 Interval, Class, DatabaseError
76 self.db.issue.set('5', status='2') 76 self.db.issue.set('5', status='2')
77 self.db.issue.get('5', "status") 77 self.db.issue.get('5', "status")
78 self.db.status.get('2', "name") 78 self.db.status.get('2', "name")
79 self.db.issue.get('5', "title") 79 self.db.issue.get('5', "title")
80 self.db.issue.find(status = self.db.status.lookup("in-progress")) 80 self.db.issue.find(status = self.db.status.lookup("in-progress"))
81 self.db.commit()
81 self.db.issue.history('5') 82 self.db.issue.history('5')
82 self.db.status.history('1') 83 self.db.status.history('1')
83 self.db.status.history('2') 84 self.db.status.history('2')
84 85
85 def testExceptions(self): 86 def testExceptions(self):
236 237
237 return unittest.TestSuite(l) 238 return unittest.TestSuite(l)
238 239
239 # 240 #
240 # $Log: not supported by cvs2svn $ 241 # $Log: not supported by cvs2svn $
242 # Revision 1.9 2001/12/02 05:06:16 richard
243 # . We now use weakrefs in the Classes to keep the database reference, so
244 # the close() method on the database is no longer needed.
245 # I bumped the minimum python requirement up to 2.1 accordingly.
246 # . #487480 ] roundup-server
247 # . #487476 ] INSTALL.txt
248 #
249 # I also cleaned up the change message / post-edit stuff in the cgi client.
250 # There's now a clearly marked "TODO: append the change note" where I believe
251 # the change note should be added there. The "changes" list will obviously
252 # have to be modified to be a dict of the changes, or somesuch.
253 #
254 # More testing needed.
255 #
241 # Revision 1.8 2001/10/09 07:25:59 richard 256 # Revision 1.8 2001/10/09 07:25:59 richard
242 # Added the Password property type. See "pydoc roundup.password" for 257 # Added the Password property type. See "pydoc roundup.password" for
243 # implementation details. Have updated some of the documentation too. 258 # implementation details. Have updated some of the documentation too.
244 # 259 #
245 # Revision 1.7 2001/08/29 06:23:59 richard 260 # Revision 1.7 2001/08/29 06:23:59 richard

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