From: richard Date: Mon, 3 Dec 2001 21:33:39 +0000 (+0000) Subject: Fixes so the tests use commit and not close X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c8e1a6e235398bd04558c51dd9ce6c4d87100d97;p=roundup.git Fixes so the tests use commit and not close git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@444 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/test/test_db.py b/test/test_db.py index 61c08a6..49074a7 100644 --- a/test/test_db.py +++ b/test/test_db.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_db.py,v 1.9 2001-12-02 05:06:16 richard Exp $ +# $Id: test_db.py,v 1.10 2001-12-03 21:33:39 richard Exp $ import unittest, os, shutil @@ -78,6 +78,7 @@ class DBTestCase(MyTestCase): self.db.status.get('2', "name") self.db.issue.get('5', "title") self.db.issue.find(status = self.db.status.lookup("in-progress")) + self.db.commit() self.db.issue.history('5') self.db.status.history('1') self.db.status.history('2') @@ -238,6 +239,20 @@ def suite(): # # $Log: not supported by cvs2svn $ +# Revision 1.9 2001/12/02 05:06:16 richard +# . We now use weakrefs in the Classes to keep the database reference, so +# the close() method on the database is no longer needed. +# I bumped the minimum python requirement up to 2.1 accordingly. +# . #487480 ] roundup-server +# . #487476 ] INSTALL.txt +# +# I also cleaned up the change message / post-edit stuff in the cgi client. +# There's now a clearly marked "TODO: append the change note" where I believe +# the change note should be added there. The "changes" list will obviously +# have to be modified to be a dict of the changes, or somesuch. +# +# More testing needed. +# # Revision 1.8 2001/10/09 07:25:59 richard # Added the Password property type. See "pydoc roundup.password" for # implementation details. Have updated some of the documentation too. diff --git a/test/test_schema.py b/test/test_schema.py index 4367e1e..5b2127c 100644 --- a/test/test_schema.py +++ b/test/test_schema.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_schema.py,v 1.5 2001-10-09 07:25:59 richard Exp $ +# $Id: test_schema.py,v 1.6 2001-12-03 21:33:39 richard Exp $ import unittest, os, shutil @@ -35,7 +35,6 @@ class SchemaTestCase(unittest.TestCase): self.db.clear() def tearDown(self): - self.db.close() shutil.rmtree('_test_dir') def testA_Status(self): @@ -76,6 +75,10 @@ def suite(): # # $Log: not supported by cvs2svn $ +# Revision 1.5 2001/10/09 07:25:59 richard +# Added the Password property type. See "pydoc roundup.password" for +# implementation details. Have updated some of the documentation too. +# # Revision 1.4 2001/08/07 00:24:43 richard # stupid typo #