Changeset 1757 in products


Ignore:
Timestamp:
Feb 16, 2010 4:20:19 PM (14 years ago)
Author:
mylan
Message:

Clarify, clean-up tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.catalogupdater/trunk/quintagroup/catalogupdater/tests.py

    r1756 r1757  
    8484 
    8585 
     86    def testAllRecordsUpdate(self): 
     87        """ Test is all records in catalog updated with utility 
     88        """ 
     89        _cat = self.catalog._catalog 
     90        cat = self.catalog 
     91        recs = self.catalog.getCounter() 
     92         
     93        import pdb;pdb.set_trace() 
     94        # mydoc = self.catalog.unrestrictedSearchResults(portal_type='Document') 
     95        # self.assertTrue([1 for b in docs if b.test_column == b.id] == [], 
     96        #     "Some document has updated 'test_column' metadata in catalog: '%s'" % docs) 
     97 
     98        # cu = queryUtility(ICatalogUpdater, name="catalog_updater") 
     99        # cu.updateMetadata4All(self.catalog, 'test_column') 
     100 
     101        # docs = self.catalog.unrestrictedSearchResults(portal_type='Document') 
     102        # self.assertTrue([1 for b in docs if b.test_column != b.id] == [], 
     103        #     "Some document has wrong 'test_column' metadata in catalog: '%s'" % docs) 
     104 
    86105 
    87106def test_suite(): 
Note: See TracChangeset for help on using the changeset viewer.