(dic, target_dir)
| 218 | |
| 219 | |
| 220 | def write_dict_to_dir(dic, target_dir): |
| 221 | assert dic |
| 222 | for relpath, content in dic.items(): |
| 223 | path = target_dir.joinpath(relpath) |
| 224 | if not path.parent.exists(): |
| 225 | os.makedirs(path.parent) |
| 226 | path.write_bytes(content) |
| 227 | |
| 228 | |
| 229 | @pytest.fixture() |
no test coverage detected