()
| 621 | |
| 622 | |
| 623 | def 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 | |
| 639 | class _PickleModuleSubTreeFileSystemWrapper: |
nothing calls this directly
no test coverage detected