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

Function test_subtree_filesystem

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

Source from the content-addressed store, hash-verified

621
622
623def test_subtree_filesystem():
624 localfs = LocalFileSystem()
625
626 subfs = SubTreeFileSystem('/base', localfs)
627 assert subfs.base_path == '/base/'
628 assert subfs.base_fs == localfs
629 assert repr(subfs).startswith('SubTreeFileSystem(base_path=/base/, '
630 'base_fs=<pyarrow._fs.LocalFileSystem')
631
632 subfs = SubTreeFileSystem('/another/base/', LocalFileSystem())
633 assert subfs.base_path == '/another/base/'
634 assert subfs.base_fs == localfs
635 assert repr(subfs).startswith('SubTreeFileSystem(base_path=/another/base/,'
636 ' base_fs=<pyarrow._fs.LocalFileSystem')
637
638
639class _PickleModuleSubTreeFileSystemWrapper:

Callers

nothing calls this directly

Calls 2

LocalFileSystemClass · 0.85
SubTreeFileSystemClass · 0.85

Tested by

no test coverage detected