MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / test_init

Method test_init

tests/utils/test_other_utils.py:429–434  ·  view source on GitHub ↗

Test ShardedLMDBManager initialization.

(self, temp_dir, mock_lmdb)

Source from the content-addressed store, hash-verified

427 yield mock
428
429 def test_init(self, temp_dir, mock_lmdb):
430 """Test ShardedLMDBManager initialization."""
431 from datastudio.utils.database import ShardedLMDBManager
432
433 manager = ShardedLMDBManager(cache_dir=temp_dir, num_shards=4)
434 assert manager is not None
435
436 def test_exists(self, temp_dir, mock_lmdb):
437 """Test exists method."""

Callers

nothing calls this directly

Calls 1

ShardedLMDBManagerClass · 0.90

Tested by

no test coverage detected