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

Method test_all_length

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

Source from the content-addressed store, hash-verified

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()
48 self.cache_backend.push('length_keyadsa', {"fsd": 123})
49 new_length = self.cache_backend.all_length()
50 self.assertEqual(new_length, initial_length + 1, "The length should increase by 1 after adding a new item.")
51
52 def test_random(self):
53 # Ensure there is at least one item

Callers

nothing calls this directly

Calls 2

all_lengthMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected