Ignore:
Timestamp:
13 Mar 2020, 10:55:28 (5 years ago)
Author:
Henrik Bettermann
Message:

Fix test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_browser.py

    r9127 r16037  
    9292        results = cat.searchResults(student_id=(None, None))
    9393        self.assertEqual(len(results),1)
     94        self.browser.open('http://localhost/app/reindex?ctlg=students')
     95        self.assertTrue('1 students re-indexed' in self.browser.contents)
    9496        cat.clear()
    9597        results = cat.searchResults(student_id=(None, None))
    9698        self.assertEqual(len(results),0)
    9799        self.browser.open('http://localhost/app/reindex?ctlg=students')
    98         self.assertTrue('1 students re-indexed' in self.browser.contents)
     100        # No docids found, the new reindex method does only reindex existing
     101        # catalog entries.
     102        self.assertTrue('0 students re-indexed' in self.browser.contents)
    99103        results = cat.searchResults(student_id=(None, None))
    100         self.assertEqual(len(results),1)
     104        self.assertEqual(len(results),0)
    101105
    102106class ApplicantUtilsUITests(ApplicantsFullSetup):
Note: See TracChangeset for help on using the changeset viewer.