MCPcopy Create free account
hub / github.com/huggingface/evaluate / bz2_csv_path

Function bz2_csv_path

tests/conftest.py:267–276  ·  view source on GitHub ↗
(csv_path, tmp_path_factory)

Source from the content-addressed store, hash-verified

265
266@pytest.fixture(scope="session")
267def bz2_csv_path(csv_path, tmp_path_factory):
268 import bz2
269
270 path = tmp_path_factory.mktemp("data") / "dataset.csv.bz2"
271 with open(csv_path, "rb") as f:
272 data = f.read()
273 # data = bytes(FILE_CONTENT, "utf-8")
274 with bz2.open(path, "wb") as f:
275 f.write(data)
276 return path
277
278
279@pytest.fixture(scope="session")

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…