MCPcopy Create free account
hub / github.com/dask/dask / test_open_files_write

Function test_open_files_write

dask/bytes/tests/test_s3.py:239–247  ·  view source on GitHub ↗
(s3)

Source from the content-addressed store, hash-verified

237
238
239def test_open_files_write(s3):
240 paths = [f"s3://{test_bucket_name}/more/{f}" for f in files]
241 fils = open_files(paths, mode="wb", **s3so)
242 for fil, data in zip(fils, files.values()):
243 with fil as f:
244 f.write(data)
245 sample, values = read_bytes(f"s3://{test_bucket_name}/more/test/accounts.*", **s3so)
246 results = compute(*concat(values))
247 assert set(files.values()) == set(results)
248
249
250def test_read_bytes(s3):

Callers

nothing calls this directly

Calls 5

read_bytesFunction · 0.90
computeFunction · 0.90
setClass · 0.85
concatFunction · 0.50
valuesMethod · 0.45

Tested by

no test coverage detected