MCPcopy Create free account
hub / github.com/Freedium-cfd/web / test_delete

Method test_delete

database-lib/test.py:39–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 result = self.cache_backend.pull(key)
38 self.assertEqual(result.json(), value, f"The pulled value for key '{key}' should match the pushed value.")
39 def test_delete(self):
40 key, value = 'delete_key', 'delete_value'
41 self.cache_backend.push(key, value)
42 self.cache_backend.delete(key)
43 result = self.cache_backend.pull(key)
44 self.assertIsNone(result, "The result should be None after deletion.")
45
46 def test_all_length(self):
47 initial_length = self.cache_backend.all_length()

Callers

nothing calls this directly

Calls 3

pushMethod · 0.45
deleteMethod · 0.45
pullMethod · 0.45

Tested by

no test coverage detected