[Zope-CVS] CVS: Products/ZCTextIndex/tests - testZCTextIndex.py:1.1.2.16
Barry Warsaw
barry@wooz.org
Fri, 10 May 2002 18:38:45 -0400
Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv15643/lib/python/Products/ZCTextIndex/tests
Modified Files:
Tag: TextIndexDS9-branch
testZCTextIndex.py
Log Message:
Checkpointing my changes for us (Casey & Barry) to work on next week.
This doesn't actually make the ZMI work for ZCTextIndex but it gets a
little closer. Of course, I could be all wrong. ;)
Specific changes:
When creating the ZCTextIndex instance in the tests, be sure to pass
in an id, since the constructor's signature has changed.
=== Products/ZCTextIndex/tests/testZCTextIndex.py 1.1.2.15 => 1.1.2.16 ===
caller = LexiconHolder(Lexicon(Splitter(), CaseNormalizer(),
StopWordRemover()))
- self.zc_index = ZCTextIndex(extra, caller)
+ self.zc_index = ZCTextIndex('name', extra, caller)
self.index = self.zc_index.index
self.lexicon = self.zc_index.lexicon
@@ -141,7 +141,7 @@
extra.lexicon_id = 'lexicon'
caller = LexiconHolder(Lexicon(Splitter(), CaseNormalizer(),
StopWordRemover()))
- self.zc_index = ZCTextIndex(extra, caller)
+ self.zc_index = ZCTextIndex('name', extra, caller)
self.p = self.parser = self.zc_index.parser
self.index = self.zc_index.index
self.add_docs()