Skip to content

Commit 57bf223

Browse files
author
Richard Jones
committed
Fixed unit test support class so the tests ran again.
1 parent 791f1d2 commit 57bf223

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/test_htmltemplate.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_htmltemplate.py,v 1.14 2002-05-15 06:37:31 richard Exp $
11+
# $Id: test_htmltemplate.py,v 1.15 2002-07-08 06:39:00 richard Exp $
1212

1313
import unittest, cgi, time
1414

@@ -43,13 +43,15 @@ def get(self, nodeid, attribute, default=None):
4343
return 'hello\nworld'
4444
def list(self):
4545
return ['1', '2']
46+
def filter(self, search_matches, filterspec, sort, group):
47+
return ['1', '2']
4648
def getprops(self):
4749
return {'string': String(), 'date': Date(), 'interval': Interval(),
4850
'link': Link('other'), 'multilink': Multilink('other'),
4951
'password': Password(), 'html': String(), 'key': String(),
5052
'novalue': String(), 'filename': String(), 'multiline': String(),
5153
'reldate': Date()}
52-
def labelprop(self):
54+
def labelprop(self, default_to_id=0):
5355
return 'key'
5456

5557
class Database:
@@ -353,6 +355,9 @@ def suite():
353355

354356
#
355357
# $Log: not supported by cvs2svn $
358+
# Revision 1.14 2002/05/15 06:37:31 richard
359+
# ehem and the unit test
360+
#
356361
# Revision 1.13 2002/04/03 05:54:31 richard
357362
# Fixed serialisation problem by moving the serialisation step out of the
358363
# hyperdb.Class (get, set) into the hyperdb.Database.

0 commit comments

Comments
 (0)