Files
clan-core/pkgs/clan-cli/tests/temporary_dir.py
2023-07-28 10:22:25 +00:00

12 lines
236 B
Python

import tempfile
from pathlib import Path
from typing import Iterator
import pytest
@pytest.fixture
def temporary_dir() -> Iterator[Path]:
with tempfile.TemporaryDirectory(prefix="pytest-") as dirpath:
yield Path(dirpath)