write test for get_clan_flake_toplevel

This commit is contained in:
Jörg Thalheim
2023-07-28 12:12:37 +02:00
committed by Mic92
parent df6e94b20e
commit 5e5fbfcf06
4 changed files with 38 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
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)