MCPcopy Create free account
hub / github.com/apache/arrow / test_huggingface_filesystem_from_uri

Function test_huggingface_filesystem_from_uri

python/pyarrow/tests/test_fs.py:2275–2287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2273
2274
2275def test_huggingface_filesystem_from_uri():
2276 pytest.importorskip("fsspec")
2277 try:
2278 from huggingface_hub import HfFileSystem
2279 except ImportError:
2280 pytest.skip("huggingface_hub not installed")
2281
2282 fs, path = FileSystem.from_uri(
2283 "hf://datasets/stanfordnlp/imdb/plain_text/train-00000-of-00001.parquet"
2284 )
2285 expected_fs = PyFileSystem(FSSpecHandler(HfFileSystem()))
2286 assert fs == expected_fs
2287 assert path == "datasets/stanfordnlp/imdb/plain_text/train-00000-of-00001.parquet"

Callers

nothing calls this directly

Calls 1

FSSpecHandlerClass · 0.90

Tested by

no test coverage detected