Skip to content

Commit d120e83

Browse files
author
Richard Jones
committed
Fixes so the tests use commit and not close
1 parent a4accff commit d120e83

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

test/test_db.py

Lines changed: 16 additions & 1 deletion
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: 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 $
1919

2020
import unittest, os, shutil
2121

@@ -78,6 +78,7 @@ def testChanges(self):
7878
self.db.status.get('2', "name")
7979
self.db.issue.get('5', "title")
8080
self.db.issue.find(status = self.db.status.lookup("in-progress"))
81+
self.db.commit()
8182
self.db.issue.history('5')
8283
self.db.status.history('1')
8384
self.db.status.history('2')
@@ -238,6 +239,20 @@ def suite():
238239

239240
#
240241
# $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+
#
241256
# Revision 1.8 2001/10/09 07:25:59 richard
242257
# Added the Password property type. See "pydoc roundup.password" for
243258
# implementation details. Have updated some of the documentation too.

test/test_schema.py

Lines changed: 5 additions & 2 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: test_schema.py,v 1.5 2001-10-09 07:25:59 richard Exp $
18+
# $Id: test_schema.py,v 1.6 2001-12-03 21:33:39 richard Exp $
1919

2020
import unittest, os, shutil
2121

@@ -35,7 +35,6 @@ class Database(anydbm.Database):
3535
self.db.clear()
3636

3737
def tearDown(self):
38-
self.db.close()
3938
shutil.rmtree('_test_dir')
4039

4140
def testA_Status(self):
@@ -76,6 +75,10 @@ def suite():
7675

7776
#
7877
# $Log: not supported by cvs2svn $
78+
# Revision 1.5 2001/10/09 07:25:59 richard
79+
# Added the Password property type. See "pydoc roundup.password" for
80+
# implementation details. Have updated some of the documentation too.
81+
#
7982
# Revision 1.4 2001/08/07 00:24:43 richard
8083
# stupid typo
8184
#

0 commit comments

Comments
 (0)