From 2faed99a558bf9b273a092d4fa2613ba8c277fa2 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 28 Feb 2003 03:33:25 +0000 Subject: [PATCH] fixes to unit tests git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1560 57a73879-2fb5-44c3-a270-3262357dd7e2 --- test/test_cgi.py | 5 +++-- test/test_init.py | 5 +++-- test/test_mailgw.py | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/test/test_cgi.py b/test/test_cgi.py index d8c49fb..b98388f 100644 --- a/test/test_cgi.py +++ b/test/test_cgi.py @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_cgi.py,v 1.11 2003-02-18 06:15:21 richard Exp $ +# $Id: test_cgi.py,v 1.12 2003-02-28 03:33:25 richard Exp $ import unittest, os, shutil, errno, sys, difflib, cgi, re @@ -45,7 +45,8 @@ class FormTestCase(unittest.TestCase): except OSError, error: if error.errno not in (errno.ENOENT, errno.ESRCH): raise # create the instance - init.install(self.dirname, 'classic', 'anydbm') + init.install(self.dirname, 'classic') + init.write_select_db(self.dirname, 'anydbm') init.initialise(self.dirname, 'sekrit') # check we can load the package self.instance = instance.open(self.dirname) diff --git a/test/test_init.py b/test/test_init.py index 8e89bc8..6f1f318 100644 --- a/test/test_init.py +++ b/test/test_init.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_init.py,v 1.20 2002-09-24 01:59:44 richard Exp $ +# $Id: test_init.py,v 1.21 2003-02-28 03:33:25 richard Exp $ import unittest, os, shutil, errno, imp, sys @@ -43,7 +43,8 @@ class ClassicTestCase(MyTestCase): ae = self.assertEqual # create the instance - init.install(self.dirname, 'classic', self.backend) + init.install(self.dirname, 'classic') + init.write_select_db(self.dirname, self.backend) init.initialise(self.dirname, 'sekrit') # check we can load the package diff --git a/test/test_mailgw.py b/test/test_mailgw.py index a2785ea..d18c8b4 100644 --- a/test/test_mailgw.py +++ b/test/test_mailgw.py @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_mailgw.py,v 1.39 2003-02-06 05:43:49 richard Exp $ +# $Id: test_mailgw.py,v 1.40 2003-02-28 03:33:25 richard Exp $ import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib @@ -68,7 +68,8 @@ class MailgwTestCase(unittest.TestCase, DiffHelper): except OSError, error: if error.errno not in (errno.ENOENT, errno.ESRCH): raise # create the instance - init.install(self.dirname, 'classic', 'anydbm') + init.install(self.dirname, 'classic') + init.write_select_db(self.dirname, 'anydbm') init.initialise(self.dirname, 'sekrit') # check we can load the package self.instance = instance.open(self.dirname) -- 2.39.5