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

Function test_open_files_write

dask/bytes/tests/test_s3.py:242–252  ·  view source on GitHub ↗
(s3, s3so)

Source from the content-addressed store, hash-verified

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

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