MCPcopy Create free account
hub / github.com/Boris-code/feapder / clear

Method clear

tests/test_dedup.py:9–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class TestDedup(unittest.TestCase):
9 def clear(self):
10 self.absolute_name = "test_dedup"
11 redis = Redis.from_url("redis://@localhost:6379/0", decode_responses=True)
12 keys = redis.keys(self.absolute_name + "*")
13 if keys:
14 redis.delete(*keys)
15
16 def setUp(self) -> None:
17 self.clear()

Callers 4

setUpMethod · 0.95
tearDownMethod · 0.95
seFunction · 0.45
genIndexFunction · 0.45

Calls 2

from_urlMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected