Skip to content

Commit 6e272eb

Browse files
author
Richard Jones
committed
'I must run unit tests before committing\n' * 100
1 parent c87eada commit 6e272eb

File tree

3 files changed

+121
-98
lines changed

3 files changed

+121
-98
lines changed

doc/features.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ from Ka-Ping Yee in the Software Carpentry "Track" design competition.
1818
- installation takes about 10 minutes for a basic installation
1919
- two "template" schemas included in the distribution for you to base your
2020
tracker on
21+
- doesn't need any additional support software - python (2.1+) is enough to
22+
get you going
2123

2224
*web interface*
2325
- fully editable interfaces for indexing and display of items

test/test_init.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: test_init.py,v 1.8 2002-05-15 03:27:16 richard Exp $
18+
# $Id: test_init.py,v 1.9 2002-05-23 04:26:05 richard Exp $
1919

2020
import unittest, os, shutil, errno, imp, sys
2121

22-
from roundup.init import init
22+
from roundup import init
2323

2424
class MyTestCase(unittest.TestCase):
2525
count = 0
@@ -43,7 +43,8 @@ def testCreation(self):
4343
ae = self.assertEqual
4444

4545
# create the instance
46-
init(self.dirname, 'classic', self.backend, 'sekrit')
46+
init.install(self.dirname, 'classic', self.backend)
47+
init.initialise(self.dirname, 'sekrit')
4748

4849
# check we can load the package
4950
instance = imp.load_package(self.dirname, self.dirname)
@@ -73,7 +74,8 @@ def testCreation(self):
7374
ae = self.assertEqual
7475

7576
# create the instance
76-
init(self.dirname, 'extended', self.backend, 'sekrit')
77+
init.install(self.dirname, 'extended', self.backend)
78+
init.initialise(self.dirname, 'sekrit')
7779

7880
# check we can load the package
7981
instance = imp.load_package(self.dirname, self.dirname)
@@ -138,6 +140,15 @@ def suite():
138140

139141
#
140142
# $Log: not supported by cvs2svn $
143+
# Revision 1.8 2002/05/15 03:27:16 richard
144+
# . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope
145+
# (thanks dman)
146+
# . fixed some sorting issues that were breaking some unit tests under py2.2
147+
# . mailgw test output dir was confusing the init test (but only on 2.2 *shrug*)
148+
#
149+
# fixed bug in the init unit test that meant only the bsddb test ran if it
150+
# could (it clobbered the anydbm test)
151+
#
141152
# Revision 1.7 2001/10/28 22:51:38 richard
142153
# Fixed ENOENT/WindowsError thing, thanks Juergen Hermann
143154
#

0 commit comments

Comments
 (0)