You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
245 B
Python

2 years ago
#!/usr/bin/env python3
from pathlib import Path
2 years ago
from tempfile import TemporaryDirectory
2 years ago
from typing import Iterator
2 years ago
import pytest
2 years ago
@pytest.fixture
def tempdir() -> Iterator[Path]:
with TemporaryDirectory() as dir:
yield Path(dir)