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

Function test_py_filesystem_ops

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

Source from the content-addressed store, hash-verified

1882
1883
1884def test_py_filesystem_ops():
1885 handler = DummyHandler()
1886 fs = PyFileSystem(handler)
1887
1888 fs.create_dir("recursive", recursive=True)
1889 fs.create_dir("non-recursive", recursive=False)
1890 with pytest.raises(IOError):
1891 fs.create_dir("foobar")
1892
1893 fs.delete_dir("delete_dir")
1894 fs.delete_dir_contents("delete_dir_contents")
1895 for path in ("", "/", "//"):
1896 with pytest.raises(ValueError):
1897 fs.delete_dir_contents(path)
1898 fs.delete_dir_contents(path, accept_root_dir=True)
1899 fs.delete_file("delete_file")
1900 fs.move("move_from", "move_to")
1901 fs.copy_file("copy_file_from", "copy_file_to")
1902
1903
1904def test_py_open_input_stream():

Callers

nothing calls this directly

Calls 7

DummyHandlerClass · 0.85
create_dirMethod · 0.45
delete_dirMethod · 0.45
delete_dir_contentsMethod · 0.45
delete_fileMethod · 0.45
moveMethod · 0.45
copy_fileMethod · 0.45

Tested by

no test coverage detected