Example #1
0
 def test_import_reset_test01(self):
     store = RedisWhooshStore(directory=self.dir, clear=True, name="test", redis=fakeredis.FakeStrictRedis())
     store.update(self.test01, etag="test01")
     assert store.size() > 0
     store.reset()
     print(store.size())
     assert store.size() == 0
Example #2
0
 def test_import_reset_wayf(self):
     store = RedisWhooshStore(directory=self.dir,
                              clear=True,
                              name="test",
                              redis=fakeredis.FakeStrictRedis())
     store.update(self.wayf,
                  tid='https://metadata.wayf.dk/wayf-edugain-metadata.xml')
     assert (store.size() == 77)
     store.reset()
     assert (store.size() == 0)