Home

Class h.t.TestDatabase(unittest.TestCase):

Part of hypy.test_libView In Hierarchy

Tests HResults, HCondition and HHit.  And since you can't test these
things without a database, test HDatabase.
MethodfreshenDatabaseUse:
Methodtest_dbOptimizeMake sure the various optimize flags do not cause a heart attack.
Methodtest_removeUpdateTest for document id, update, document removal, len() of database.
Methodtest_removeURINone#356253: should be able to explicitly say "uri=None" when calling remove
Methodtest_removeNullsBug 321579: nulls should not kill addText
Methodtest_putFlagsTests for put flags, other put-related corner cases.
Methodtest_condExtrasTests for search skip, search options, cond on attributes
Methodtest_dbOpenClosedTests for all the db open/close modes
Methodtest_queriesTest various conditions against an index to make sure search works.
Methodtest_hitsPoke at the hits returned by a search and see if document data and
Methodtest_autoflushVerify that autoflush is not on when it's not turned on, and that
@contextmanager
def freshenDatabase(self, extras=0):
Use:
    with self.freshenDatabase() as db:
        ... stuff that should test using these three documents ...
def test_dbOptimize(self):
Make sure the various optimize flags do not cause a heart attack.
def test_removeUpdate(self):
Test for document id, update, document removal, len() of database.
def test_removeURINone(self):
#356253: should be able to explicitly say "uri=None" when calling remove
def test_removeNulls(self):
Bug 321579: nulls should not kill addText
def test_putFlags(self):
Tests for put flags, other put-related corner cases.
def test_condExtras(self):
Tests for search skip, search options, cond on attributes
def test_dbOpenClosed(self):
Tests for all the db open/close modes
def test_queries(self):
Test various conditions against an index to make sure search works.
def test_hits(self):
Poke at the hits returned by a search and see if document data and
teaser text come out right.
def test_autoflush(self):
Verify that autoflush is not on when it's not turned on, and that
words are autoindexed when it is turned on
API Documentation for Hypy, generated by pydoctor at 2009-09-20 10:39:55.