MCPcopy
hub / github.com/huggingface/datasets / zstd_path

Function zstd_path

tests/test_file_utils.py:62–67  ·  view source on GitHub ↗
(tmp_path_factory)

Source from the content-addressed store, hash-verified

60
61@pytest.fixture(scope="session")
62def zstd_path(tmp_path_factory):
63 path = tmp_path_factory.mktemp("data") / (FILE_PATH + ".zstd")
64 data = bytes(FILE_CONTENT, "utf-8")
65 with zstd.open(path, "wb") as f:
66 f.write(data)
67 return path
68
69
70@pytest.fixture

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected