(prefix, *args)
| 83 | with tempfile.TemporaryDirectory() as dir: |
| 84 | |
| 85 | def make_path(prefix, *args): |
| 86 | path = os.path.join(dir, prefix) |
| 87 | if request.param: |
| 88 | path = os.path.join(path, request.param) |
| 89 | path = os.path.join(path, *args) |
| 90 | return path |
| 91 | |
| 92 | # Good tactics |
| 93 | save_json(make_replay(0), make_path("good", "0.json")) |