MCPcopy Create free account
hub / github.com/alibaba/zvec / test_custom

Method test_custom

python/tests/test_params.py:313–320  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311 assert option.enable_mmap == True
312
313 def test_custom(self):
314 option = CollectionOption(read_only=True, enable_mmap=False)
315 assert option.read_only == True
316 assert option.enable_mmap == False
317
318 option = CollectionOption(read_only=False, enable_mmap=True)
319 assert option.read_only == False
320 assert option.enable_mmap == True
321
322 @pytest.mark.parametrize("attr", ["read_only", "enable_mmap"])
323 def test_readonly_attributes(self, attr):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected