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

Function test_compression_detection

python/pyarrow/tests/test_io.py:1759–1766  ·  view source on GitHub ↗
(path, expected_compression)

Source from the content-addressed store, hash-verified

1757 (pathlib.Path("path/to/file.zst"), "zstd"),
1758])
1759def test_compression_detection(path, expected_compression):
1760 if not Codec.is_available(expected_compression):
1761 with pytest.raises(pa.lib.ArrowNotImplementedError):
1762 Codec.detect(path)
1763 else:
1764 codec = Codec.detect(path)
1765 assert isinstance(codec, Codec)
1766 assert codec.name == expected_compression
1767
1768
1769def test_unknown_compression_raises():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected