(
*,
prefix: str,
dir: Path, # ruff:ignore[builtin-argument-shadowing] # matches mkdtemp
)
| 399 | mkdtemp = tempfile.mkdtemp |
| 400 | |
| 401 | def create_with_group_access( |
| 402 | *, |
| 403 | prefix: str, |
| 404 | dir: Path, # ruff:ignore[builtin-argument-shadowing] # matches mkdtemp |
| 405 | ) -> str: |
| 406 | # Stands in for an inheritable ACL entry that grants the group access to every new directory. |
| 407 | directory: Final[Path] = Path(mkdtemp(prefix=prefix, dir=dir)) |
| 408 | directory.chmod(0o770) |
| 409 | directories.append(directory) |
| 410 | return str(directory) |
| 411 | |
| 412 | mocker.patch("tempfile.mkdtemp", autospec=True, side_effect=create_with_group_access) |
| 413 | return directories |
nothing calls this directly
no outgoing calls
no test coverage detected