Skip to content

Commit e792ddd

Browse files
author
Richard Jones
committed
unit test fixes
1 parent 5e6067d commit e792ddd

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

roundup/instance.py

Lines changed: 2 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: instance.py,v 1.32 2004-11-18 16:52:18 a1s Exp $
18+
# $Id: instance.py,v 1.33 2004-11-29 02:55:46 richard Exp $
1919

2020
'''Tracker handling (open tracker).
2121
@@ -24,7 +24,7 @@
2424
__docformat__ = 'restructuredtext'
2525

2626
import os
27-
from roundup import configuration, mailgw, rlog
27+
from roundup import configuration, mailgw
2828
from roundup import hyperdb, backends
2929
from roundup.cgi import client, templating
3030

roundup/rlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class BasicLogging:
4545
LVL_WARNING: 'WARNING',
4646
LVL_ERROR: 'ERROR',
4747
}
48-
level = LVL_INFO
48+
level = LVL_ERROR
4949
loggers = {}
5050
file = None
5151
def getLogger(self, name):

test/test_indexer.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
# $Id: test_indexer.py,v 1.4 2004-03-19 04:47:59 richard Exp $
21+
# $Id: test_indexer.py,v 1.5 2004-11-29 02:55:47 richard Exp $
2222

2323
import os, unittest, shutil
2424

@@ -35,11 +35,10 @@ def setUp(self):
3535

3636
def test_basics(self):
3737
self.dex.add_text('testing1', 'a the hello world')
38-
self.assertEqual(self.dex.words, {'HELLO': {1: 1}, 'THE': {1: 1},
39-
'WORLD': {1: 1}})
38+
self.assertEqual(self.dex.words, {'HELLO': {1: 1}, 'WORLD': {1: 1}})
4039
self.dex.add_text('testing2', 'blah blah the world')
4140
self.assertEqual(self.dex.words, {'BLAH': {2: 2}, 'HELLO': {1: 1},
42-
'THE': {2: 1, 1: 1}, 'WORLD': {2: 1, 1: 1}})
41+
'WORLD': {2: 1, 1: 1}})
4342
self.assertEqual(self.dex.find(['world']), {2: 'testing2',
4443
1: 'testing1'})
4544
self.assertEqual(self.dex.find(['blah']), {2: 'testing2'})

0 commit comments

Comments
 (0)