def test_get_pyarrow_filesystem(): pa = pytest.importorskip('pyarrow') fs = LocalFileSystem() assert isinstance(get_pyarrow_filesystem(fs), pa.filesystem.LocalFileSystem) with pytest.raises(NotImplementedError): get_pyarrow_filesystem(UnknownFileSystem())
def test_get_pyarrow_fs_s3(s3): pa = pytest.importorskip('pyarrow') fs = DaskS3FileSystem(anon=True) assert isinstance(get_pyarrow_filesystem(fs), pa.filesystem.S3FSWrapper)
def test_get_pyarrow_fs_s3(s3): pa = pytest.importorskip('pyarrow') fs = DaskS3FileSystem(anon=True) assert isinstance(get_pyarrow_filesystem(fs), pa.filesystem.S3FSWrapper)