(dir_server)
| 80 | |
| 81 | |
| 82 | def test_fetch_range_with_headers(dir_server): |
| 83 | # https://github.com/dask/dask/issues/4479 |
| 84 | root = "http://localhost:8999/" |
| 85 | fn = files[0] |
| 86 | headers = {"Date": "Wed, 21 Oct 2015 07:28:00 GMT"} |
| 87 | f = open_files(root + fn, headers=headers)[0] |
| 88 | with f as f: |
| 89 | data = f.read(length=1) + f.read(length=-1) |
| 90 | with open(os.path.join(dir_server, fn), "rb") as expected: |
| 91 | assert data == expected.read() |
| 92 | |
| 93 | |
| 94 | @pytest.mark.parametrize("block_size", [None, 99999]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…