(suffix)
| 31 | |
| 32 | |
| 33 | def generate(suffix): |
| 34 | root = pathlib.Path(__file__).parent.relative_to(os.getcwd()) |
| 35 | zfpath = root / f'zipdata{suffix}/ziptestdata.zip' |
| 36 | with zipfile.ZipFile(zfpath, 'w') as zf: |
| 37 | for src, rel in walk(root / f'data{suffix}'): |
| 38 | dst = 'ziptestdata' / pathlib.PurePosixPath(rel.as_posix()) |
| 39 | print(src, '->', dst) |
| 40 | zf.write(src, dst) |
| 41 | |
| 42 | |
| 43 | def walk(datapath): |
nothing calls this directly
no test coverage detected