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

Function test_move_file

python/pyarrow/tests/test_fs.py:976–993  ·  view source on GitHub ↗
(fs, pathfn)

Source from the content-addressed store, hash-verified

974
975
976def test_move_file(fs, pathfn):
977 # s3fs moving a file with recursive=True on latest 0.5 version
978 # (https://github.com/dask/s3fs/issues/394)
979 skip_fsspec_s3fs(fs)
980
981 # TODO(GH-40025): Stop skipping this test
982 skip_azure(fs, "Not implemented yet in for Azure. See GH-40025")
983
984 s = pathfn('test-move-source-file')
985 t = pathfn('test-move-target-file')
986
987 with fs.open_output_stream(s):
988 pass
989
990 fs.move(s, t)
991 with pytest.raises(pa.ArrowIOError):
992 fs.delete_file(s)
993 fs.delete_file(t)
994
995
996def test_delete_file(fs, pathfn):

Callers

nothing calls this directly

Calls 6

skip_fsspec_s3fsFunction · 0.85
skip_azureFunction · 0.85
pathfnFunction · 0.85
open_output_streamMethod · 0.45
moveMethod · 0.45
delete_fileMethod · 0.45

Tested by

no test coverage detected